java - Does com.day.cq.search.impl.SimpleSearchImpl expose an addPredicate() method? -


i need filter pages won't appear in search. there method called

addpredicate(new predicate("mytype", "type").set("group.4_group.1_property", "jcr:content/cq:template")); 

this method not present in com.day.cq.wcm.foundation.search. i'm not sure in api addpredicate method present.

in cq5 docs, said method implemented in simplesearchimpl, present in package com.day.cq.search.impl.simplesearchimpl. however, when try import package, throws error saying package invalid.

if simplesearchimpl not required class addpredicate method, can please tell me class needed method addpredicate?

the com.day.cq.search.simplesearch interface exported cq-search bundle, not com.day.cq.search.impl.simplesearchimpl implementation class.

you can see list of exported packages here:

http://localhost:4502/system/console/bundles/com.day.cq.cq-search 

you can reference simplesearch implementation adapting resource or using scr reference.

alex klimetschek gave great presentation on [using querybuilder api]http://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011) alternative simplesearch approach, might useful helping understand predicates.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -