Hi to all!
I'm working on Elastic 5.4
I want to retrieve all mapping parameters (values for "index", "index_options", "norms") currently defined for a mapped object, but i can't find the way...
Here is what I'm doing:
1) I have defined a template
curl -X PUT \
'http://localhost:9200/_template/transactions_index_template' \
-d '{
"template": "transactions_index*",
"mappings": {
"transaction": {
"_all": {
"enabled": false
},
"properties": {
"fieldA": {
"index_options": "docs",
"index": "not_analyzed",
"norms": false,
"type": "keyword"
},
"fieldB": {
"index_options": "docs",
"index": "no",
"norms": false,
"type": "keyword"
},
"fieldC": {
"index_options": "docs",
"index": "no",
"type": "long"
}
}
}
}
}'
2) Than, no matter what, i have completely defined an index
curl -X PUT \
'http://localhost:9200/transactions_index_2018_06/' \
-H 'Content-Type: application/json' \
-d '{
"mappings": {
"transaction": {
"_all": {
"enabled": false
},
"properties": {
"fieldA": {
"index_options": "docs",
"index": "not_analyzed",
"norms": false,
"type": "keyword"
},
"fieldB": {
"index_options": "docs",
"index": "no",
"norms": false,
"type": "keyword"
},
"fieldC": {
"index_options": "docs",
"index": "no",
"type": "long"
}
}
}
}
}'
When i get pretty info of the created index, the response lacks of the values for "index", "index_options", "norms"
curl -X GET
'http://localhost:9200/transactions_index_2018_06/?pretty='
RETURNS:
{
"mappings": {
"transaction": {
"_all": {
"enabled": false
},
"properties": {
"fieldA": {
"type": "keyword"
},
"fieldB": {
"type": "keyword"
},
"fieldC": {
"index_options": "docs",
"type": "long"
}
}
}
}
}
WHY? WHAT I HAVE TO DO?
