Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Search items

Avatar

Level 6

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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#Refin... What Is Returned

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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#Refin... What Is Returned