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

How to make excerpts highlight synonyms too.

Avatar

Level 3

 

I have implemented Synonyms in my lucene search. It works fine. And I am grabbing excerpts for each of my results hit.

 

When AEM is able to grab an excerpt from full text, it gives me the proper excerpt with highlighting, but if it is not able to grab an excerpt, it returns me the summary text as per the oak index configuration.

 

But my excerpts give me the highlights only when the exact searched word is present, how do I make my excerpts grab synonyms too?

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I believe excerpt will only work with full text indexed property and not with synonyms. Synonyms words will only tell aem to also look for the configured synonyms word to search for.

 

View solution in original post

2 Replies

Avatar

Administrator

@DPrakashRaj @Rohan_Garg  Can you please review this Question and share your thoughts? 



Kautuk Sahni

Avatar

Correct answer by
Community Advisor

I believe excerpt will only work with full text indexed property and not with synonyms. Synonyms words will only tell aem to also look for the configured synonyms word to search for.