mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-05-03 13:04:49 +00:00
Use OP_ELITE_SET rather than OP_OR in more_like_this.
Because performance is really bad when using OP_OR with a large database.
This commit is contained in:
parent
f83742485b
commit
e4707203f4
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ class SearchBackend(BaseSearchBackend):
|
|||
for match in self._get_enquire_mset(database, enquire, 0, end_offset):
|
||||
rset.add_document(match.docid)
|
||||
|
||||
query = xapian.Query(xapian.Query.OP_OR,
|
||||
query = xapian.Query(xapian.Query.OP_ELITE_SET,
|
||||
[expand.term for expand in enquire.get_eset(match.document.termlist_count(), rset, XHExpandDecider())]
|
||||
)
|
||||
query = xapian.Query(
|
||||
|
|
|
|||
Loading…
Reference in a new issue