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:
Ryan Ernst 2015-02-04 13:17:38 -08:00
parent 9362ba200d
commit c6968883a7
25 changed files with 80 additions and 162 deletions

View file

@ -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': {