开发者

Search results are duplicated after update_index (django haystack+whoosh)

开发者 https://www.devze.com 2023-02-05 17:56 出处:网络
I use django-haystack with whoosh as a backend. I call update_index command in a scheduled intervals and I\'ve noticed that after each update my search results contains a lot o开发者_开发百科f duplica

I use django-haystack with whoosh as a backend. I call update_index command in a scheduled intervals and I've noticed that after each update my search results contains a lot o开发者_开发百科f duplicated entries (eg. after 3 update_index calls I have 3 duplicates of the same model instance).

HAve you faced this problem? Any ideas how to solve it?


This was related to some bugs in whoosh. According to Whoosh author it is fixed now: https://bitbucket.org/mchaput/whoosh/issue/97/search-index-contains-a-lot-of-duplicates

0

精彩评论

暂无评论...
验证码 换一张
取 消