mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-16 09:54:55 +00:00
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"));
|
||||
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user