[TEST] size should start from 1, top_hits aggregation doesn't support size <= 0

This commit is contained in:
Martijn van Groningen 2014-06-02 13:21:13 +02:00
parent 3b31f25624
commit 43b21719f5
1 changed files with 1 additions and 1 deletions

View File

@ -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")