0
0
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:
Matt Westcott 2023-10-20 16:13:58 +01:00
parent 8d68dafb0b
commit 6e82e23c4d

View File

@ -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