elasticsearchelasticsearch-2.0

Root mapping definition has unsupported parameters


I am getting error whenever i tried to give the below mappings.

Is there anything you need to do for "copy_to".

PUT myindex/mytype/_mapping
{
  "mappings": {
  "properties": {
  "manufacturer": {
    "type": "string",
    "copy_to": "full_make_model_name"
  },
  "name": {
    "type": "string",
    "copy_to": "full_make_model_name"
  },
  "full_make_model_name": {
    "type": "string",
    "index": "analyzed"
  }
 }
}
}

Solution

  • Try:

    PUT myindex/_mapping/mytype
    {
      "properties": {
      "manufacturer": {
        "type": "string",
        "copy_to": "full_make_model_name"
      },
      "name": {
        "type": "string",
        "copy_to": "full_make_model_name"
      },
      "full_make_model_name": {
        "type": "string",
        "index": "analyzed"
      }
     }
    }
    

    https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-put-mapping.html#indices-put-mapping