Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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