-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Description
Elasticsearch version (bin/elasticsearch --version): 6.5.3
Plugins installed: []
JVM version (java -version): 1.8.0_72
OS version (uname -a if on a Unix-like system): Windows 10
Description of the problem including expected versus actual behavior:
Setting the value of index setting "index.mapper.dynamic" to false does not work in Elasticsearch 6.x.
Steps to reproduce:
Execute the following commands:
PUT test_index
{
"settings": {
"index.mapper.dynamic": false
}
}
PUT test_index/test_mapping/1
{
"foo": "bar"
}
Elasticsearch 5.6.10 fails as expected with the following response:
{
"error": {
"root_cause": [
{
"type": "type_missing_exception",
"reason": "type[test_mapping] missing",
"index_uuid": "IMHwQyOvQiW25XRA-i7lSA",
"index": "test_index"
}
],
"type": "type_missing_exception",
"reason": "type[test_mapping] missing",
"index_uuid": "IMHwQyOvQiW25XRA-i7lSA",
"index": "test_index",
"caused_by": {
"type": "illegal_state_exception",
"reason": "trying to auto create mapping, but dynamic mapping is disabled"
}
},
"status": 404
}
Elasticsearch 6.5.3 succeeds (not expected) with the following response:
{
"_index": "test_index",
"_type": "test_mapping",
"_id": "1",
"_version": 1,
"result": "created",
"_shards": {
"total": 2,
"successful": 1,
"failed": 0
},
"_seq_no": 0,
"_primary_term": 1
}
Metadata
Metadata
Assignees
Labels
No labels