Hi,
Following mapping I have defined for one of my types.
{
"user": {
"properties": {
"userid": {
"dynamic":"false",
"type": "string"
},
"password": {
"dynamic":"false",
"type": "string"
}
}
}
}
I want to make sure that documents that will be indexed must conform to the types I have defined in the ablove mapping. userid filed is string, so it should not accept numbers and this is why I have used dynamic property which is set to false. Also in the config file I have set index.mapper.dynamic to false. But this is not working for me when I index below document
{"userid":"u001","password":123}
It gets inserted. What may be the reason and how can I enforce type checking while indexing a document.
Thaks.