xapian-haystack icon indicating copy to clipboard operation
xapian-haystack copied to clipboard

autocomplete work only with full word match

Open aldarund opened this issue 12 years ago • 5 comments

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..

aldarund avatar Oct 28 '12 15:10 aldarund

Same problem here... django-haystack==2.0.0-beta xapian-haystack==2.0.0

rafaelcanovas avatar Apr 24 '13 19:04 rafaelcanovas

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?

esatterwhite avatar Nov 21 '13 23:11 esatterwhite

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.

jorgecarleitao avatar May 17 '14 07:05 jorgecarleitao

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.

jorgecarleitao avatar May 20 '14 02:05 jorgecarleitao

Has this been fixed? I am experiencing it now as I upgrade to Django 1.10 and would love a fix.

flamholz avatar Dec 23 '16 02:12 flamholz