Fixes an elasticsearch 5 test.

This commit is contained in:
Bertrand Bordage 2018-01-04 12:11:09 +01:00
parent bd6cb6dad7
commit f9cc020ded

View file

@ -122,7 +122,7 @@ class TestElasticsearch5SearchQuery(TestCase):
# Check it
expected_result = {'bool': {
'filter': {'match': {'content_type': 'searchtests.Book'}},
'query': {'match': {'title': {'query': 'Hello'}}}
'must': {'match': {'title': {'query': 'Hello'}}}
}}
self.assertDictEqual(query_compiler.get_query(), expected_result)