Django haystack EdgeNgramField given different results than elasticsearch

前端 未结 2 1884
时光取名叫无心
时光取名叫无心 2021-02-04 08:34

I\'m currently running haystack with an elasticsearch backend, and now I\'m building an autocomplete for cities names. The problem is that SearchQuerySet is giving me different

2条回答
  •  被撕碎了的回忆
    2021-02-04 09:11

    Well, I had a similar problem and my strategy was make a custom backend.

    The complete instructions can be found on:

    http://www.wellfireinteractive.com/blog/custom-haystack-elasticsearch-backend/

    It works to me !

    Hope this helps.

提交回复
热议问题