Skip to content

Commit d055b22

Browse files
author
Christoph Büscher
committed
Small fix in ICUCollationKeywordFieldMapperIT
The test was slightly modified with elastic#49166, the two test documents in `testNormalization` look like they should mirror the document id in the "id" field in order for it to work as a tie breaker. Closes elastic#49654
1 parent 815ea92 commit d055b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/analysis-icu/src/test/java/org/elasticsearch/index/mapper/ICUCollationKeywordFieldMapperIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public void testNormalization() throws Exception {
189189
client().prepareIndex(index).setId("1")
190190
.setSource("{\"id\":\"1\",\"collate\":\"" + equivalent[0] + "\"}", XContentType.JSON),
191191
client().prepareIndex(index).setId("2")
192-
.setSource("{\"id\":\"1\",\"collate\":\"" + equivalent[1] + "\"}", XContentType.JSON)
192+
.setSource("{\"id\":\"2\",\"collate\":\"" + equivalent[1] + "\"}", XContentType.JSON)
193193
);
194194

195195
// searching for either of the terms should return both results since they collate to the same value

0 commit comments

Comments
 (0)