Tests: Fix SimpleQueryStringTests.testSimpleQueryString assumption that depends on how documents are routed.
This commit is contained in:
parent
181bd6e56a
commit
6523cd9377
|
@ -73,7 +73,7 @@ public class SimpleQueryStringTests extends ElasticsearchIntegrationTest {
|
||||||
assertFirstHit(searchResponse, hasId("4"));
|
assertFirstHit(searchResponse, hasId("4"));
|
||||||
|
|
||||||
searchResponse = client().prepareSearch().setQuery(
|
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);
|
assertHitCount(searchResponse, 2l);
|
||||||
assertFirstHit(searchResponse, hasId("5"));
|
assertFirstHit(searchResponse, hasId("5"));
|
||||||
assertSearchHits(searchResponse, "5", "6");
|
assertSearchHits(searchResponse, "5", "6");
|
||||||
|
|
Loading…
Reference in New Issue