TomonoriSoejima / Tejun

notes related to working cases
5 stars 3 forks source link

but found a concrete value #73

Open TomonoriSoejima opened 2 years ago

TomonoriSoejima commented 2 years ago
{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "object mapping for [name] tried to parse field [name] as object, but found a concrete value"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "object mapping for [name] tried to parse field [name] as object, but found a concrete value"
  },
  "status" : 400
}
PUT _ingest/pipeline/my-pipeline-id
{
  "description": "rename name to name.last",
  "processors": [
    {
      "rename": {
        "field": "name",
        "target_field": "name.last"
      }
    }
  ]
}

POST test2/_doc/1
{
  "name" : {
    "last" : "goro"
  }
}

POST test2/_doc/2
{
  "name": "taro"
}

POST test2/_doc/2?pipeline=my-pipeline-id
{
  "name": "taro"
}

GET test2/_search