Skip to content

Commit

Permalink
Change text query to match query in tests
Browse files Browse the repository at this point in the history
text query has been deprecated in elasticsearch 0.90 and removed in
elasticsearch 1.0. match query should be used instead.

elastic/elasticsearch#4033
  • Loading branch information
aflag committed Aug 2, 2014
1 parent df95100 commit a17adfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_querytestcase.py
Expand Up @@ -104,7 +104,7 @@ def test_search_all_indexes(self):
def test_search_one_index_that_has_item(self):
query = {
"query": {
"text": {
"match": {
"name": "Agnessa"
}
}
Expand All @@ -117,7 +117,7 @@ def test_search_one_index_that_has_item(self):
def test_search_one_index_that_doesnt_have_item(self):
query = {
"query": {
"text": {
"match": {
"name": "Agnessa"
}
}
Expand Down

0 comments on commit a17adfa

Please sign in to comment.