Search items | Community
Skip to main content
francisco_ribei
New Participant
October 16, 2015
Solved

Search items

  • October 16, 2015
  • 1 reply
  • 530 views

Hi,

I have a item search page, and I have about 50.000 items in the repository. I have some items that should not be retrieved in the search but should be visible only in some item details as related items. 

I'd like suggestions on how to do that. I thought on the following possibilities:

  • Add an attribute to flag if the item should be displayed or not in the search, and I could filter in the jsp that receives the result or in the search query itself, which one is better?

Is there any property that we can set that says that the item is not to be indexed?

Thanks

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

Are you using Query Builder API to search the content in the AEM JCR? Using this API - you can refine the properties on which to search (e.g. path, name, title, etc). See the details here: 

https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html#Refining What Is Returned

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

Are you using Query Builder API to search the content in the AEM JCR? Using this API - you can refine the properties on which to search (e.g. path, name, title, etc). See the details here: 

https://docs.adobe.com/docs/en/cq/5-6-1/dam/customizing_and_extendingcq5dam/query_builder.html#Refining What Is Returned