mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Mappings: Remove support for new indexes using path setting in
object/nested fields or index_name in any field Backcompat is still here for indexes created before 2.0. closes #6677
This commit is contained in:
parent
9362ba200d
commit
c6968883a7
25 changed files with 80 additions and 162 deletions
|
@ -159,7 +159,22 @@ def generate_index(client, version):
|
|||
'index_analyzer': 'standard',
|
||||
'search_analyzer': 'keyword',
|
||||
'search_quote_analyzer': 'english',
|
||||
}
|
||||
}
|
||||
mappings['index_name_and_path'] = {
|
||||
'properties': {
|
||||
'parent_multi_field': {
|
||||
'type': 'string',
|
||||
'path': 'just_name',
|
||||
'fields': {
|
||||
'raw': {'type': 'string', 'index': 'not_analyzed', 'index_name': 'raw_multi_field'}
|
||||
}
|
||||
},
|
||||
'field_with_index_name': {
|
||||
'type': 'string',
|
||||
'index_name': 'custom_index_name_for_field'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
client.indices.create(index='test', body={
|
||||
'settings': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue