-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CompletionFieldMapper to parametrized format (#59691)
This adds a number of new optional parameters to Parameter, including: * custom serialization (to handle analyzers) * deprecated parameter names * parameter validation * allowing default values to be based on the values of other parameters We preserve the previous serialization format of CompletionFieldMapper, always emitting most fields, in order to meet mapping checks in mixed version clusters, where the mapper service will check that mappings have been correctly parsed and updated by checking their serialized outputs.
- Loading branch information
1 parent
4089cbd
commit 10be10c
Showing
7 changed files
with
418 additions
and
289 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
351 changes: 133 additions & 218 deletions
351
server/src/main/java/org/elasticsearch/index/mapper/CompletionFieldMapper.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.