Skip to content

Commit

Permalink
Small fix in ICUCollationKeywordFieldMapperIT
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Christoph Büscher committed Nov 27, 2019
1 parent 815ea92 commit d055b22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testNormalization() throws Exception {
client().prepareIndex(index).setId("1")
.setSource("{\"id\":\"1\",\"collate\":\"" + equivalent[0] + "\"}", XContentType.JSON),
client().prepareIndex(index).setId("2")
.setSource("{\"id\":\"1\",\"collate\":\"" + equivalent[1] + "\"}", XContentType.JSON)
.setSource("{\"id\":\"2\",\"collate\":\"" + equivalent[1] + "\"}", XContentType.JSON)
);

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

0 comments on commit d055b22

Please sign in to comment.