mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Removes boost when using Filter.
This commit is contained in:
parent
ef125bde56
commit
c9e0a54372
1 changed files with 2 additions and 2 deletions
|
|
@ -168,9 +168,9 @@ class Filter(SearchQueryShortcut):
|
|||
def get_equivalent(self):
|
||||
query = self.query
|
||||
if self.include is not None:
|
||||
query &= self.include
|
||||
query &= Boost(self.include, 0)
|
||||
if self.exclude is not None:
|
||||
query &= ~self.exclude
|
||||
query &= Boost(~self.exclude, 0)
|
||||
return query
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue