From d0f8742f8d31a8a496984d08635b549e9ae1f6d0 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 25 Apr 2014 11:07:31 +0200 Subject: [PATCH] [TEST] Prevent deletion of the second document by using different ids --- .../search/suggest/CompletionSuggestSearchTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java b/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java index 658a37bb111..a7cb4ba5833 100644 --- a/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java +++ b/src/test/java/org/elasticsearch/search/suggest/CompletionSuggestSearchTests.java @@ -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()