Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete work only with full word match #108

Open
aldarund opened this issue Oct 28, 2012 · 5 comments
Open

autocomplete work only with full word match #108

aldarund opened this issue Oct 28, 2012 · 5 comments

Comments

@aldarund
Copy link

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

@rafaelcanovas
Copy link

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

@esatterwhite
Copy link

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?

@jorgecarleitao jorgecarleitao added this to the Improve Xapian querying end-user usability milestone May 17, 2014
@jorgecarleitao
Copy link
Collaborator

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
Copy link
Collaborator

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 jorgecarleitao removed this from the 2.0 milestone May 21, 2014
@flamholz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants