mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Mappings: Remove ability to set path for _id and _routing on 2.0+ indexes
_id and _routing now no longer support the 'path' setting on indexes created with 2.0. Indexes created before 2.0 still support this setting for backcompat. closes #6730
This commit is contained in:
parent
6544890e14
commit
b3474f6b25
15 changed files with 106 additions and 134 deletions
|
@ -175,6 +175,15 @@ def generate_index(client, version):
|
|||
}
|
||||
}
|
||||
}
|
||||
mappings['meta_fields'] = {
|
||||
'_id': {
|
||||
'path': 'myid'
|
||||
},
|
||||
'_routing': {
|
||||
'path': 'myrouting'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
client.indices.create(index='test', body={
|
||||
'settings': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue