I want to restrict search functionality for some pages(of particular parent page). So if the page's URL contains a particular keyword then exclude them from search.

Somehow I am able to do the opposite of the above scenario by this. {{ search:results url:contains='/page-slug/' }}

But how can I check not_contains condition?

Answered by Erin Dalzell! Go to answer.