mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
Revert "Rationalise get_inner_query override"
This reverts commit 2de7506b1720d11f6386de8a7d23b14783bcee92.
This commit is contained in:
parent
8d68dafb0b
commit
6e82e23c4d
@ -136,7 +136,10 @@ class Elasticsearch6SearchQueryCompiler(Elasticsearch5SearchQueryCompiler):
|
||||
return super()._compile_phrase_query(query, self.get_boosted_fields(fields))
|
||||
|
||||
def get_inner_query(self):
|
||||
fields = self.remapped_fields
|
||||
if self.remapped_fields:
|
||||
fields = self.remapped_fields
|
||||
else:
|
||||
fields = [self.mapping.all_field_name]
|
||||
|
||||
if len(fields) == 0:
|
||||
# No fields. Return a query that'll match nothing
|
||||
|
Loading…
Reference in New Issue
Block a user