Skip to content

Commit

Permalink
Merge pull request #48 from cuent/patch-2
Browse files Browse the repository at this point in the history
add match all query type
  • Loading branch information
vrcmarcos authored Dec 3, 2020
2 parents e2e47f9 + deb8c3b commit cecd02a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elasticmock/fake_elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class QueryType:
BOOL = 'BOOL'
FILTER = 'FILTER'
MATCH = 'MATCH'
MATCH_ALL = 'MATCH_ALL'
TERM = 'TERM'
TERMS = 'TERMS'
MUST = 'MUST'
Expand All @@ -35,6 +36,8 @@ def get_query_type(type_str):
return QueryType.FILTER
elif type_str == 'match':
return QueryType.MATCH
elif type_str == 'match_all':
return QueryType.MATCH_ALL
elif type_str == 'term':
return QueryType.TERM
elif type_str == 'terms':
Expand Down

0 comments on commit cecd02a

Please sign in to comment.