master_deal_no is my field name while I'm trying to create mapping it throwing me mapper parsing exception.
What is the error, the whole thing?
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping [ma]: Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Expected map for property [fields] on field [acquiror_nation] but got a class java.lang.String"
}
},
"status": 400
}
acquiror_nation i also the field name
It is telling you that you've got "fields": "some_string"
somewhere in you mapping and that "fields"
always takes a map like {"name": "other"}
. Here is an example of "fields"
.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.