Skip to content

Commit

Permalink
Small fix in ICUCollationKeywordFieldMapperIT (#49656)
Browse files Browse the repository at this point in the history
The test was slightly modified with #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 #49654
  • Loading branch information
Christoph Büscher authored Nov 27, 2019
1 parent ffaf836 commit c23c4ae
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 c23c4ae

Please sign in to comment.