Hi everyone!
I am using the Get field mapping API to check if a field exists in Elasticsearch.
My index is:
"mappings": {
"dynamic": "strict",
"properties": {
"_customer": {
"type": "nested",
"properties": {
"_name": {
"type": "text"
},
"_types": {
"type": "nested",
"properties": {
"_description": {
"type": "text"
},
"_items": {
"type": "nested"
}
}
}
}
},
"id": {
"type": "keyword"
}
}
}
And I run the GET request:
/myIndex/_mapping/field/_customer._types._items?allow_no_indices=false
But the response has not my field:
{
"myIndex": {
"mappings": {}
}
}
The response should not have the mapping of my field? This is bug or am I doing something wrong?