ES 5.6.10 default mapping field store Double and BigDecimal into string

Hi guys , i use XContentBuilder as a source of Index Request to store my biz data, like this
jsonBuilder()
.startObject()
.field("table", Constants.ES_IDX_REPAYMENT)
.field("nation", repayment.getNation())
.field("amount", repayment.getAmount())
.endObject();
i find the BigDecimal property repayment.getAmount() saved into ES as a string type field , but this property saved into ES 6.7 version is number type field.
How to make up this issue?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.