xapian-haystack
xapian-haystack copied to clipboard
autocomplete work only with full word match
When i use django-haystack and xapian backend and trying to do autocomplete SearchQuerySet().autocomplete(category_title_auto='ca') It doesn't return anything. It only return if i search for a full word..
Same problem here... django-haystack==2.0.0-beta xapian-haystack==2.0.0
It doesn't look like anything ever passes the xapian flags into the query. which is odd as they have defaults, over rides and get assigned to the backend instance.
is there a simple fix for this?
I think that this is because autocomplete is using filter, which in turn is using exact matches by default. In principle this will be fixed on this ticket #123.
I took a more close look at this, and the issue seems to be that we are not indexing ngram, see #117. This thus depends on it.
Has this been fixed? I am experiencing it now as I upgrade to Django 1.10 and would love a fix.