[TEST] Prevent deletion of the second document by using different ids

This commit is contained in:
Simon Willnauer 2014-04-25 11:07:31 +02:00
parent ec5dbbaf51
commit d0f8742f8d
1 changed files with 1 additions and 1 deletions

View File

@ -786,7 +786,7 @@ public class CompletionSuggestSearchTests extends ElasticsearchIntegrationTest {
).get();
// Higher weight so it's ranked first:
client().prepareIndex(INDEX, TYPE, "1").setSource(jsonBuilder()
client().prepareIndex(INDEX, TYPE, "2").setSource(jsonBuilder()
.startObject().startObject(FIELD)
.startArray("input").value("Feed the trolls").endArray()
.field("weight", 10).endObject().endObject()