How to make excerpts highlight synonyms too. | Community
Skip to main content
Level 2
August 25, 2023
Solved

How to make excerpts highlight synonyms too.

  • August 25, 2023
  • 2 replies
  • 824 views

 

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?

 

 

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 DPrakashRaj

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.

 

2 replies

kautuk_sahni
Community Manager
Community Manager
October 10, 2023

@dprakashraj @rohan_garg  Can you please review this Question and share your thoughts? 

Kautuk Sahni
DPrakashRaj
Community Advisor
DPrakashRajCommunity AdvisorAccepted solution
Community Advisor
October 11, 2023

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.