increase search stats rounds to make sure the stats are higher than 0
This commit is contained in:
parent
62bc0836c1
commit
c4542c8349
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue