mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
Adjusted the query operations for boosts
This commit is contained in:
parent
765ea0ebd3
commit
9ba7d0f8d5
1 changed files with 2 additions and 2 deletions
|
|
@ -834,8 +834,8 @@ class SearchQuery(BaseSearchQuery):
|
|||
) for term, value in self.boost.iteritems()
|
||||
]
|
||||
query = xapian.Query(
|
||||
xapian.Query.OP_OR, query,
|
||||
xapian.Query(xapian.Query.OP_AND, subqueries)
|
||||
xapian.Query.OP_AND_MAYBE, query,
|
||||
xapian.Query(xapian.Query.OP_OR, subqueries)
|
||||
)
|
||||
|
||||
return query
|
||||
|
|
|
|||
Loading…
Reference in a new issue