How to implement Solr auto suggester and spell checker simultaneously on a single search box
I am using Solr version 6.3 and I want to implement a search box with auto
suggester, spell checker and context filtering functionalities. I have
explored around search components '*suggest*' and '*spellcheck*', but I
found nothing which has all the 3 requirements fulfilled.
Thanks and Regards,
*Sonal Patwari* | Enterprise Software Engineer
Re: How to implement Solr auto suggester and spell checker simultaneously on a single search box
if you want to go with a plain Solr suggester, what about the :
1) it does support fuzzy matching ( spellcheck)
2) it does support auto complete
If you want the context filtering as well, unfortunately the FST based Solr
suggesters don't support this feature.
I would recommend in that case to build your own autocompletion service
defining a dedicated Lucene index ( to make it simple you could define an ad
hoc Solr collection).
Then, at query time, when a query doesn't return results you may want to
execute a fuzzy query ( to bring the spellcheck functionality or just run
the spellcheck response collation from the main query)