mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 00:33:17 +00:00
Fix typo in Elasticsearch backend
Caused crash when PlainText was used in a combinator query
This commit is contained in:
parent
05dcb32303
commit
f3f00da100
1 changed files with 1 additions and 1 deletions
|
|
@ -464,7 +464,7 @@ class Elasticsearch2SearchQueryCompiler(BaseSearchQueryCompiler):
|
|||
}
|
||||
|
||||
elif isinstance(query, PlainText):
|
||||
return self._compile_plaintext_query(self.query, [field], boost)
|
||||
return self._compile_plaintext_query(query, [field], boost)
|
||||
|
||||
|
||||
elif isinstance(query, Boost):
|
||||
|
|
|
|||
Loading…
Reference in a new issue