forked from elastic/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make StringFieldMapper.toXContent aware of defaults for not_analyzed …
…fields. StringFieldMapper.toXContent uses the defaults for analyzed fields in order to know which options to add to the builder. This means that if the field is not analyzed and has norms enabled, it will omit to emit `norms.enabled: true`. Parsing the mapping again will result in a StringFieldMapper that has norms disabled. The same fix applies to index options. Close elastic#4760
- Loading branch information
Showing
2 changed files
with
65 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters