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

Unneccesary mapping refreshes caused by unordered fielddata settings #10370

Closed
wants to merge 2 commits into from
Closed

Conversation

EikeDehling
Copy link
Contributor

Fixes #10318

Happy to hear feedback, e.g. suggestions to make the test simpler.

@@ -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>();
Copy link
Contributor

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

Copy link
Contributor

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<>();

@bleskes
Copy link
Contributor

bleskes commented Apr 2, 2015

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.

@EikeDehling
Copy link
Contributor Author

@bleskes Thanks for the tips, i adjusted as you suggested.

@bleskes
Copy link
Contributor

bleskes commented Apr 2, 2015

looks good. I'll pull it in. Thx!

@bleskes
Copy link
Contributor

bleskes commented Apr 2, 2015

Merged. Thx Eike.

@clintongormley clintongormley added :Search/Mapping Index mappings, including merging and defining field types and removed :Internal labels Jun 7, 2015
@clintongormley clintongormley changed the title Bugfix+unittest for unneccesary mapping refreshes caused by unordered fielddata settings Unneccesary mapping refreshes caused by unordered fielddata settings Jun 7, 2015
mute pushed a commit to mute/elasticsearch that referenced this pull request Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Mapping Index mappings, including merging and defining field types v1.5.1 v1.6.0 v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Endless mapping refresh
3 participants