[TEST] use correct index name created for this test

This commit is contained in:
Simon Willnauer 2015-05-17 20:26:13 +02:00
parent 1038933832
commit 54ae0a557d
1 changed files with 3 additions and 3 deletions

View File

@ -764,9 +764,9 @@ public class SuggestSearchTests extends ElasticsearchIntegrationTest {
public void testDifferentShardSize() throws Exception {
createIndex("test");
ensureGreen();
indexRandom(true, client().prepareIndex("text", "type1", "1").setSource("field1", "foobar1").setRouting("1"),
client().prepareIndex("text", "type1", "2").setSource("field1", "foobar2").setRouting("2"),
client().prepareIndex("text", "type1", "3").setSource("field1", "foobar3").setRouting("3"));
indexRandom(true, client().prepareIndex("test", "type1", "1").setSource("field1", "foobar1").setRouting("1"),
client().prepareIndex("test", "type1", "2").setSource("field1", "foobar2").setRouting("2"),
client().prepareIndex("test", "type1", "3").setSource("field1", "foobar3").setRouting("3"));
Suggest suggest = searchSuggest( "foobar",
termSuggestion("simple")