Hi Im using default search api i.e com.day.cq.wcm.foundation.Search
however, with this Im not able to restrict error pages, admin pages from search
but there is one function addPredicate , we can add the templates for those pages that we want to restrict
addPredicate(new Predicate("mytype", "type").set("group.4_group.1_property", "jcr:content/cq:template"));
addPredicate(new Predicate("mytype", "type").set("group.4_group.1_property.1_value","/apps/myapp/templates /adminpageone");
addPredicate(new Predicate("mytype", "type").set("group.4_group.1_property.and","true");
addPredicate(new Predicate("mytype", "type").set("group.4_group.1_property.operation","unequals");
but I need to know in which api this addPredicate method is there, in cq5 docs, it is found that
this method addPredicate is present in SimpleSearchImpl which is present in the package com.day.cq.search.impl.SimpleSearchImpl,however when Im trying to import that package Im getting error saying that package is not valid .If this approach is not proper, please let me know how to restrict specific pages from search using the default com.day.cq.wcm.foundation.Search api.
Thanks,
Balaji