You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sonal Patwari <so...@hotwaxsystems.com> on 2018/05/16 08:42:06 UTC
How to implement Solr auto suggester and spell checker simultaneously
on a single search box
Hello,
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
Posted by Alessandro Benedetti <a....@sease.io>.
Hi Sonal,
if you want to go with a plain Solr suggester, what about the :
FuzzyLookupFactory ?
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)
Cheers
-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html