[TEST] size should start from 1, top_hits aggregation doesn't support size <= 0
This commit is contained in:
parent
3b31f25624
commit
43b21719f5
|
@ -171,7 +171,7 @@ public class TopHitsTests extends ElasticsearchIntegrationTest {
|
|||
|
||||
@Test
|
||||
public void testPagination() throws Exception {
|
||||
int size = randomIntBetween(0, 10);
|
||||
int size = randomIntBetween(1, 10);
|
||||
int from = randomIntBetween(0, 10);
|
||||
SearchResponse response = client().prepareSearch("idx").setTypes("type")
|
||||
.addAggregation(terms("terms")
|
||||
|
|
Loading…
Reference in New Issue