How to Mark Metadata field as Non Searchable in AEM | Community
Skip to main content
July 20, 2018
Solved

How to Mark Metadata field as Non Searchable in AEM

  • July 20, 2018
  • 4 replies
  • 1817 views

Hi Experts,

We are implementing the AEM Assets for one our client. There is requirement to make some metadata fields as Non-Searchable. How we can configure the metadata field as Non searchable?

Thanks

Samer

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 edubey

You can use excludeFromAggregation

http://jackrabbit.apache.org/oak/docs/query/lucene.html#aggregation

4 replies

Adobe Employee
July 20, 2018

You need to modify your index definition(say DamAssetLucene) to include an analyzer which would have a file which contains the stopwords. You can add all the metadata keywords in this file and after you reindex, fire the query you won't be able to query for such excluded keywords.

More information on how you can setup analyzers : Jackrabbit Oak – Lucene Index

edubey
edubeyAccepted solution
Level 10
July 23, 2018
smacdonald2008
Level 10
July 23, 2018

Nice responses Praveen and Kunwar! In addition - for more information about Oak Indexes - see this webinar -- Oak Lucene Indexes

July 23, 2018

it works. Thanks Praveen and Kunwar.