mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Codecs: Remove the ability to have custom per-field postings and doc values formats.
This commit makes the `postings_format` and `doc_values_format` options of mappings illegal on 2.0 and ignored on 1.x (meaning that the default postings and doc values formats from the codec will be used in such a case). This removes a fair amount of code. Close #8746 #9741
This commit is contained in:
parent
2a217c2d20
commit
4708227ecf
69 changed files with 506 additions and 1864 deletions
|
@ -183,6 +183,18 @@ def generate_index(client, version):
|
|||
'path': 'myrouting'
|
||||
}
|
||||
}
|
||||
mappings['custom_formats'] = {
|
||||
'properties': {
|
||||
'string_with_custom_postings': {
|
||||
'type': 'string',
|
||||
'postings_format': 'Lucene41'
|
||||
},
|
||||
'long_with_custom_doc_values': {
|
||||
'type': 'long',
|
||||
'doc_values_format': 'Lucene42'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
client.indices.create(index='test', body={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue