Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix in ICUCollationKeywordFieldMapperIT #49656

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Small fix in ICUCollationKeywordFieldMapperIT
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 committed Nov 27, 2019
commit d055b2219e651f130185a59bdc1acbda56df156b
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