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
Unneccesary mapping refreshes caused by unordered fielddata settings #10370
Conversation
…d fielddata settings
@@ -750,10 +750,13 @@ protected void doXContentBody(XContentBuilder builder, boolean includeDefaults, | |||
builder.field("similarity", SimilarityLookupService.DEFAULT_SIMILARITY); | |||
} | |||
|
|||
TreeMap<String, Object> orderedFielddataSettings = new TreeMap<String, Object>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we miss an import here, I believe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also the TreeMap<String,Object>() can be simplified to:
TreeMap<String, Object> orderedFielddataSettings = new TreeMap<>();
Thx @EikeDehling . I think the fix is good. I made some comments on improving the test. Once that's done I can pull this in. |
@bleskes Thanks for the tips, i adjusted as you suggested. |
looks good. I'll pull it in. Thx! |
Merged. Thx Eike. |
Fixes #10318
Happy to hear feedback, e.g. suggestions to make the test simpler.