Does Elasticsearch _ in between the field name?


(Kartheek Gummaluri) #1

master_deal_no is my field name while I'm trying to create mapping it throwing me mapper parsing exception.


(Mark Walkom) #2

What is the error, the whole thing?


(Kartheek Gummaluri) #3
{
  "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
}

(Kartheek Gummaluri) #4

acquiror_nation i also the field name


(Nik Everett) #5

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".


(system) #6

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