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

mispelled word gives appropriate result in Search Component

Avatar

Level 3

Hi All,

 I have created Search Component and Client ask me  if user search misspelled word it is not showing anything.

at least it will show appropriate result .

exmaple:fince it will show finance result

anyone worked such kind of requeirement

 

.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@savi50 If you are using Lucene API for searching the text, you should explore Stemming & Fizzy search. 

Stemmed searches return relevance-ranked results for the words you search for as well as for words with the same stem as the words you search for.

Lucene provide Analyzers to get filtered results. Refer below link to get more info on the same. 

 

Search in AEM - AEM Corner

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@savi50 If you are using Lucene API for searching the text, you should explore Stemming & Fizzy search. 

Stemmed searches return relevance-ranked results for the words you search for as well as for words with the same stem as the words you search for.

Lucene provide Analyzers to get filtered results. Refer below link to get more info on the same. 

 

Search in AEM - AEM Corner