[TEST] prevent dummy documents from being indexed in testSimpleQueryString() since scores are compared

This commit is contained in:
Lee Hinman 2014-05-21 17:37:54 +02:00
parent a6b0b80f3d
commit 03402c7ed8
1 changed files with 1 additions and 1 deletions

View File

@ -1961,7 +1961,7 @@ public class SimpleQueryTests extends ElasticsearchIntegrationTest {
@Test
public void testSimpleQueryString() throws ExecutionException, InterruptedException {
createIndex("test");
indexRandom(true,
indexRandom(true, false,
client().prepareIndex("test", "type1", "1").setSource("body", "foo"),
client().prepareIndex("test", "type1", "2").setSource("body", "bar"),
client().prepareIndex("test", "type1", "3").setSource("body", "foo bar"),