toastdriven/django-haystack — pull request #747 by josesanch (2013-02-27 22:51:43+00:00)
Title: Implementation of the Suggest feature present in ElasticSearch 0.90

Return the most probable phrase with the words you've use

In [3]: SearchQuerySet().spelling_suggestion("seta toldo")
Out[3]: u'seat toledo'

In [4]: SearchQuerySet().spelling_suggestion("hiunday accet")
Out[4]: u'hyundai accent'

In [6]: SearchQuerySet().spelling_suggestion("moto mitshubichi")
Out[6]: u'motor mitsubishi

In [7]: SearchQuerySet().spelling_suggestion("seat toledo")
Out[7]: u'seat toledo'