From deb8c3bc584efb7a70300e4550a2b2b26a14dc89 Mon Sep 17 00:00:00 2001 From: Xavier Sumba Date: Wed, 2 Dec 2020 08:34:29 -0500 Subject: [PATCH] add match all query type --- elasticmock/fake_elasticsearch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elasticmock/fake_elasticsearch.py b/elasticmock/fake_elasticsearch.py index cf41f60..a6f4ca0 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' @@ -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':