Tests: Fix SimpleQueryStringTests.testSimpleQueryString assumption that depends on how documents are routed.

This commit is contained in:
Adrien Grand 2014-11-04 18:07:33 +01:00
parent 181bd6e56a
commit 6523cd9377
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class SimpleQueryStringTests extends ElasticsearchIntegrationTest {
assertFirstHit(searchResponse, hasId("4"));
searchResponse = client().prepareSearch().setQuery(
simpleQueryString("spaghetti").field("body", 10.0f).field("otherbody", 2.0f).queryName("myquery")).get();
simpleQueryString("spaghetti").field("body", 1000.0f).field("otherbody", 2.0f).queryName("myquery")).get();
assertHitCount(searchResponse, 2l);
assertFirstHit(searchResponse, hasId("5"));
assertSearchHits(searchResponse, "5", "6");