test: make sure the inner hits are in the expected order

This commit is contained in:
Martijn van Groningen 2015-07-09 11:56:06 +02:00
parent 8a52a362dd
commit 86f362699e
1 changed files with 1 additions and 1 deletions

View File

@ -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_3").queryName("test2"))
.should(termQuery("nested1.n_field2", "n_value2_2").queryName("test3"))
).innerHit(new QueryInnerHitBuilder()))
).innerHit(new QueryInnerHitBuilder().addSort("nested1.n_field1", SortOrder.ASC)))
.setSize(numDocs)
.addSort("field1", SortOrder.ASC)
.get();