[test] make sure that the scripts in testScoreAccessWithinScript never compute log(0)

This commit is contained in:
Britta Weber 2015-08-27 22:00:52 +02:00
parent 48ea97cace
commit e6eeadd171
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class RandomScoreFunctionIT extends ESIntegTestCase {
int docCount = randomIntBetween(100, 200); int docCount = randomIntBetween(100, 200);
for (int i = 0; i < docCount; i++) { for (int i = 0; i < docCount; i++) {
client().prepareIndex("test", "type", "" + i).setSource("body", randomFrom(newArrayList("foo", "bar", "baz")), "index", i) client().prepareIndex("test", "type", "" + i).setSource("body", randomFrom(newArrayList("foo", "bar", "baz")), "index", i + 1)// we add 1 to the index field to make sure that the scripts below never compute log(0)
.get(); .get();
} }
refresh(); refresh();