Skip to content

Commit

Permalink
add match all query type
Browse files Browse the repository at this point in the history
  • Loading branch information
cuent authored Dec 2, 2020
1 parent 15cd0c6 commit deb8c3b
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'

Expand All @@ -34,6 +35,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 deb8c3b

Please sign in to comment.