test: make sure the inner hits are in the expected order
This commit is contained in:
parent
8a52a362dd
commit
86f362699e
|
@ -1062,7 +1062,7 @@ public class InnerHitsTests extends ElasticsearchIntegrationTest {
|
||||||
.should(termQuery("nested1.n_field1", "n_value1_1").queryName("test1"))
|
.should(termQuery("nested1.n_field1", "n_value1_1").queryName("test1"))
|
||||||
.should(termQuery("nested1.n_field1", "n_value1_3").queryName("test2"))
|
.should(termQuery("nested1.n_field1", "n_value1_3").queryName("test2"))
|
||||||
.should(termQuery("nested1.n_field2", "n_value2_2").queryName("test3"))
|
.should(termQuery("nested1.n_field2", "n_value2_2").queryName("test3"))
|
||||||
).innerHit(new QueryInnerHitBuilder()))
|
).innerHit(new QueryInnerHitBuilder().addSort("nested1.n_field1", SortOrder.ASC)))
|
||||||
.setSize(numDocs)
|
.setSize(numDocs)
|
||||||
.addSort("field1", SortOrder.ASC)
|
.addSort("field1", SortOrder.ASC)
|
||||||
.get();
|
.get();
|
||||||
|
|
Loading…
Reference in New Issue