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:
Adrien Grand 2015-02-18 09:48:48 +01:00
parent 2a217c2d20
commit 4708227ecf
69 changed files with 506 additions and 1864 deletions

View file

@ -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={