mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Mappings: Remove index_analyzer
setting to simplify analyzer logic
The `analyzer` setting is now the base setting, and `search_analyzer` is simply an override of the search time analyzer. When setting `search_analyzer`, `analyzer` must be set. closes #9371
This commit is contained in:
parent
cc461a837f
commit
afcedb94ed
24 changed files with 124 additions and 159 deletions
|
@ -144,6 +144,16 @@ def generate_index(client, version):
|
|||
# backcompat test for legacy type level analyzer settings, see #8874
|
||||
mappings['analyzer_type1'] = {
|
||||
'analyzer': 'standard',
|
||||
'properties': {
|
||||
'string_with_index_analyzer': {
|
||||
'type': 'string',
|
||||
'index_analyzer': 'standard'
|
||||
},
|
||||
'completion_with_index_analyzer': {
|
||||
'type': 'completion',
|
||||
'index_analyzer': 'standard'
|
||||
}
|
||||
}
|
||||
}
|
||||
mappings['analyzer_type2'] = {
|
||||
'index_analyzer': 'standard',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue