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.
HOST:PORT/system/console/depfinder?plugin.find=com.day.cq.search.impl.SimpleSearchImpl&plu gin.submit=Find is not exported that why you get that error.
You need to use http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/search/SimpleSearch.html as a service.
Hi Yogesh, thanks for your reply, i will try with SimpleSearch interface