Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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