Hello,
We have an existing application which send index data to ElasticSearch. It works properly with ES 7.13. Now I switch the application to OpenSearch 1.1 but encounter below error when sending index data.
“error” : {
“type” : “illegal_argument_exception”,
“reason” : “mapper [fieldConfidence] cannot be changed from type [integer] to [long]”
}
The fieldConfidence is defined in json like below:
“fieldConfidence”:0
I tested the same json string in OpenSearch Dashboards Dev Tools and got the same error. The fieldConfidence is defined as integer type in index mapping definition. I don’t know why 0 is considered as long type, and even if it is long type, why not OpenSearch try to convert it to integer?
There are more similar errors like below:
cannot be changed from type [float] to [long]"
cannot be changed from type [date] to [long]"
cannot be changed from type [double] to [long]"
We don’t have these issues in Elastic 6 and 7. The latest verified ES version is 7.13. Our application was built by C# and leveraged http client library to send json string to create/update index data. Please suggest if any easy way for the application to work with OpenSearch. Thanks a lot.