How to implement Solr auto suggester and spell checker simultaneously on a single search box

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to implement Solr auto suggester and spell checker simultaneously on a single search box

Sonal Patwari
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
Reply | Threaded
Open this post in threaded view
|

Re: How to implement Solr auto suggester and spell checker simultaneously on a single search box

Alessandro Benedetti
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
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director
Sease Ltd. - www.sease.io