Skip to content

Commit

Permalink
support brief wildcard/prefix queries
Browse files Browse the repository at this point in the history
  • Loading branch information
santiagoaguiar committed Aug 22, 2022
1 parent ec754b5 commit 4062894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elasticmock/fake_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _evaluate_for_multi_match_query_type(self, document):
return self._evaluate_for_fields(document)

def _compare_value_for_field(self, doc_source, field, value, ignore_case, is_wildcard=False, is_prefix=False):
if is_wildcard or is_prefix:
if (is_wildcard or is_prefix) and type(value) == type({}):
value = value['value']
if ignore_case and isinstance(value, str):
value = value.lower()
Expand Down

0 comments on commit 4062894

Please sign in to comment.