|
@@ -358,14 +358,14 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
|
|
ElasticsearchAssertions.assertNoFailures(searchReq.get());
|
|
ElasticsearchAssertions.assertNoFailures(searchReq.get());
|
|
|
|
|
|
logger.info("--> testing exists filter");
|
|
logger.info("--> testing exists filter");
|
|
- searchReq = client().prepareSearch(indexName).setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(), QueryBuilders.existsQuery("string")));
|
|
|
|
|
|
+ searchReq = client().prepareSearch(indexName).setQuery(QueryBuilders.existsQuery("string"));
|
|
searchRsp = searchReq.get();
|
|
searchRsp = searchReq.get();
|
|
ElasticsearchAssertions.assertNoFailures(searchRsp);
|
|
ElasticsearchAssertions.assertNoFailures(searchRsp);
|
|
assertEquals(numDocs, searchRsp.getHits().getTotalHits());
|
|
assertEquals(numDocs, searchRsp.getHits().getTotalHits());
|
|
|
|
|
|
logger.info("--> testing missing filter");
|
|
logger.info("--> testing missing filter");
|
|
// the field for the missing filter here needs to be different than the exists filter above, to avoid being found in the cache
|
|
// the field for the missing filter here needs to be different than the exists filter above, to avoid being found in the cache
|
|
- searchReq = client().prepareSearch(indexName).setQuery(QueryBuilders.filteredQuery(QueryBuilders.matchAllQuery(), QueryBuilders.missingQuery("long_sort")));
|
|
|
|
|
|
+ searchReq = client().prepareSearch(indexName).setQuery(QueryBuilders.missingQuery("long_sort"));
|
|
searchRsp = searchReq.get();
|
|
searchRsp = searchReq.get();
|
|
ElasticsearchAssertions.assertNoFailures(searchRsp);
|
|
ElasticsearchAssertions.assertNoFailures(searchRsp);
|
|
assertEquals(0, searchRsp.getHits().getTotalHits());
|
|
assertEquals(0, searchRsp.getHits().getTotalHits());
|