Skip to content

Commit

Permalink
Remove deprecated queries
Browse files Browse the repository at this point in the history
Closes dadoonet#98.

(cherry picked from commit d291dbc)
  • Loading branch information
dadoonet committed Jan 20, 2015
1 parent 6879ae6 commit 0f7fa74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void countTestHelper(final String indexName, String term, final Integer e
if (term == null) {
query = QueryBuilders.matchAllQuery();
} else {
query = QueryBuilders.queryString(term);
query = QueryBuilders.queryStringQuery(term);
}

// We wait up to 5 seconds before considering a failing test
Expand Down Expand Up @@ -493,7 +493,7 @@ public boolean apply(Object o) {
@Override
public boolean apply(Object o) {
SearchResponse searchResponse = client().prepareSearch(getRiverName())
.setQuery(QueryBuilders.queryString("tweet")).execute().actionGet();
.setQuery(QueryBuilders.queryStringQuery("tweet")).execute().actionGet();
return searchResponse.getHits().getTotalHits() == 2;
}
}, 10, TimeUnit.SECONDS), equalTo(true));
Expand Down

0 comments on commit 0f7fa74

Please sign in to comment.