toastdriven/django-haystack — Issue #519: Improving performance of spelling suggestions in Whoosh Backend
Author: qris
Created: 2012-02-27 11:19:02+00:00
State: open

The Whoosh Backend's spelling module is quite slow. I've filed an issue with Whoosh:

* https://bitbucket.org/mchaput/whoosh/issue/224

but since Haystack is using the "old, obsolete" SpellChecker class, I don't know if it will be fixed (and Matt Chaput seems busy with other things these days).

You might like to investigate the solution/workaround that I came up with:

* https://github.com/aptivate/intranet-search/blob/master/whoosh_backend.py

particularly the SpellCheckerWithIncrementalUpdates class, and its suggest() and add_words() methods, for possible inclusion in Haystack's WhooshBackend.