Custom Search Facets Predicate | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008
HI Nicole, you can use custom Predicates in aem to search JCR. There are not too many community articles that show this API IN ACTION.  One that does and will point you in right direction is this one. https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html Notice the code in the servlet. We need more examples of this API in action.

7 replies

New Participant
November 5, 2015

smacdonald2008 wrote...

I am travelling from Europe to North America. If this is not answered, I can setup a connect session to dig into this and help you find a good solution.

 

Thank you Scott, will try and update on the progress

smacdonald2008
New Participant
November 5, 2015
I am travelling from Europe to North America. If this is not answered, I can setup a connect session to dig into this and help you find a good solution.   
smacdonald2008
New Participant
November 5, 2015
If you create another form,  why not make a Restful call to backend service?
New Participant
November 5, 2015

smacdonald2008 wrote...

HI Nicole, you can use custom Predicates in aem to search JCR. There are not too many community articles that show this API IN ACTION. One that does and will point you in right direction is this one. https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html Notice the code in the servlet. We need more examples of this API in action.

 

Hey Scott,

I am trying to customize the http://localhost:4502/assets.html/content/dam search functionality, by following the link pasted above, i have a way to create a predicate by using the hidden field predicate, to search for assets that do not have the property "xyz", but i cant have conditions to search for an asset with the property and without the property together while searching for assets. I could create another form, but not sure how to hook it up to the search option

smacdonald2008
New Participant
November 5, 2015
smacdonald2008
New Participant
November 5, 2015
You can also use JCR API and call hasproperty that returns a boolean.   
smacdonald2008
smacdonald2008Accepted solution
New Participant
November 5, 2015
HI Nicole, you can use custom Predicates in aem to search JCR. There are not too many community articles that show this API IN ACTION.  One that does and will point you in right direction is this one. https://helpx.adobe.com/experience-manager/using/creating-custom-cq-tree.html Notice the code in the servlet. We need more examples of this API in action.