From c4542c83493df14a26eff73f686523bc210bd4ac Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 10 Nov 2011 12:01:39 +0200 Subject: [PATCH] increase search stats rounds to make sure the stats are higher than 0 --- .../test/integration/search/stats/SearchStatsTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/test/integration/src/test/java/org/elasticsearch/test/integration/search/stats/SearchStatsTests.java b/modules/test/integration/src/test/java/org/elasticsearch/test/integration/search/stats/SearchStatsTests.java index 309c5c88001..05905f6820a 100644 --- a/modules/test/integration/src/test/java/org/elasticsearch/test/integration/search/stats/SearchStatsTests.java +++ b/modules/test/integration/src/test/java/org/elasticsearch/test/integration/search/stats/SearchStatsTests.java @@ -58,14 +58,14 @@ public class SearchStatsTests extends AbstractNodesTests { @Test public void testSimpleStats() throws Exception { client.admin().indices().prepareDelete().execute().actionGet(); - for (int i = 0; i < 100; i++) { + for (int i = 0; i < 500; i++) { client.prepareIndex("test1", "type", Integer.toString(i)).setSource("field", "value").execute().actionGet(); } - for (int i = 0; i < 100; i++) { + for (int i = 0; i < 500; i++) { client.prepareIndex("test2", "type", Integer.toString(i)).setSource("field", "value").execute().actionGet(); } - for (int i = 0; i < 50; i++) { + for (int i = 0; i < 200; i++) { client.prepareSearch().setQuery(QueryBuilders.termQuery("field", "value")).setStats("group1", "group2").execute().actionGet(); }