Hide Products/Page in JCR Query Search | Community
Skip to main content
rajeev6969
Level 2
October 16, 2015
Solved

Hide Products/Page in JCR Query Search

  • October 16, 2015
  • 2 replies
  • 3251 views

I  want to create custom JCR query search for products/pages. In search results, I dont want to display certain pages/products. What is the best way to do it?

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 ogill

Hi,

how are you going to differentiate between what you want to return and what you want to exclude?

If you have a property that identifies a product for exclusion then you can write a custom predicate[1][2]

Regards,

Opkar

[1]https://docs.adobe.com/docs/en/aem/6-1/develop/search/implementing-custom-predicate-evaluator.html

[2] http://labs.6dglobal.com/blog/2013-07-10/custom-predicateevaluators-or-how-i-learned-stop-worrying-and-love/

2 replies

ogillAdobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

Hi,

how are you going to differentiate between what you want to return and what you want to exclude?

If you have a property that identifies a product for exclusion then you can write a custom predicate[1][2]

Regards,

Opkar

[1]https://docs.adobe.com/docs/en/aem/6-1/develop/search/implementing-custom-predicate-evaluator.html

[2] http://labs.6dglobal.com/blog/2013-07-10/custom-predicateevaluators-or-how-i-learned-stop-worrying-and-love/

rajeevy89244319
Level 3
October 8, 2018

I want to pass certain page paths that are configured to be excluded. There is no property to identify if that path needs to be excluded. Authors can configure the list of paths that they don't want to see in the search results.