Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.9.0
Describe the issue:
When I map a field as text (or keyword), if my request contains this field in a different type, opensearch converts it as text instead of throwing an error. I could not find any option to disable this, and accept only texts in a text field, is it possible?
Example:
current
PUT index-1/
{
"mappings": {
"dynamic": "strict",
"properties": {
"field1": {
"type": "text"
}
}
when sending:
POST index-1/_bulk
{"create": {}}
{"field1": 123545}
it does not return errors, instead saves the integer as text.