[TEST] Order of the results is not important in this test

This commit is contained in:
Simon Willnauer 2014-07-04 14:29:16 +02:00
parent d3f8c66e26
commit 80617612cb
1 changed files with 1 additions and 2 deletions

View File

@ -207,8 +207,7 @@ public class MultiMatchQueryTests extends ElasticsearchIntegrationTest {
searchResponse = client().prepareSearch("test")
.setQuery(randomizeType(multiMatchQuery("the Ul", "full_name_phrase", "first_name_phrase", "last_name_phrase", "category_phrase")
.operator(MatchQueryBuilder.Operator.OR).type(MatchQueryBuilder.Type.PHRASE_PREFIX))).get();
assertFirstHit(searchResponse, hasId("ultimate2"));
assertSecondHit(searchResponse, hasId("ultimate1"));
assertSearchHits(searchResponse, "ultimate2", "ultimate1");
assertHitCount(searchResponse, 2l);
}