I am trying to index data to elastic. Indexing does not happen when I have a mapping for 'uid' as keyword. But it works when there are no custom mappings defined for 7.2 version. Please help.
Below is the custom template:
curl -X PUT "localhost:9200/_template/template_fortest" -H 'Content-Type: application/json' -d'
{
"index_patterns": "math*",
"settings": {
"number_of_shards": 2
},
"order" : -4,
"mappings": {
"properties": {
"uid": {
"type": "keyword"
}
}
}
}
'