diff --git a/elasticmock/fake_elasticsearch.py b/elasticmock/fake_elasticsearch.py index 01cfd34..6152c06 100644 --- a/elasticmock/fake_elasticsearch.py +++ b/elasticmock/fake_elasticsearch.py @@ -23,6 +23,7 @@ class QueryType: BOOL = 'BOOL' FILTER = 'FILTER' MATCH = 'MATCH' + MATCH_ALL = 'MATCH_ALL' TERM = 'TERM' TERMS = 'TERMS' MUST = 'MUST' @@ -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':