How to enable search synonyms in AEM with Lucene? | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
June 29, 2020

How to enable search synonyms in AEM with Lucene? | AEM Community Blog Seeding

  • June 29, 2020
  • 1 reply
  • 2176 views

BlogImage.jpg

How to enable search synonyms in AEM with Lucene? by techforum

Abstract

This tutorial explains how to enable search synonyms in AEM with Lucene.
Search Synonyms
Synonyms are used to inform the search engine that searching for one word should also search for others e.g searching for gigabyte should also consider gigabytes, gib and gb etc
The analyzer should be configured for custom oak index to support the search synonyms.
Refer the following tutorial to configure custom oak index and analyzers

Configure Analyzer
Let us now configure the Analyzer to support the search synonyms.
Create a node “Synonym” with the the primary type of “nt:unstructured” under analyzers\default\filters (refer the sample configuration package from the git link posted in the bottom of the tutorial)

Read Full Blog

How to enable search synonyms in AEM with Lucene?

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

January 17, 2023

Thats a rather good question! You might have to look at Openoffice for a thesaurus/synonyms file and convert it to the text format for solr. But! There is no such thing as the 'ultimate' synonyms file for your problem domain.
A common strategy is to let your users vote and build the synomyns via an question and anwers app.Lucene