[TEST] Prevent deletion of the second document by using different ids
This commit is contained in:
parent
ec5dbbaf51
commit
d0f8742f8d
|
@ -786,7 +786,7 @@ public class CompletionSuggestSearchTests extends ElasticsearchIntegrationTest {
|
||||||
).get();
|
).get();
|
||||||
|
|
||||||
// Higher weight so it's ranked first:
|
// Higher weight so it's ranked first:
|
||||||
client().prepareIndex(INDEX, TYPE, "1").setSource(jsonBuilder()
|
client().prepareIndex(INDEX, TYPE, "2").setSource(jsonBuilder()
|
||||||
.startObject().startObject(FIELD)
|
.startObject().startObject(FIELD)
|
||||||
.startArray("input").value("Feed the trolls").endArray()
|
.startArray("input").value("Feed the trolls").endArray()
|
||||||
.field("weight", 10).endObject().endObject()
|
.field("weight", 10).endObject().endObject()
|
||||||
|
|
Loading…
Reference in New Issue