We have an existing index and try to update like this:
curl -X PUT 'http://localhost:9200/spir/material/_mapping?ignore_conflicts=true' -d
'{
"material": {
"properties": {
"text": {
"type": "text",
"analyzer": "whitespace"
},
"headline": {
"type": "text", "analyzer": "whitespace"
},
"lead": {
"type": "text", "analyzer": "whitespace"
}
}
}
}'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/spir/material/_mapping] contains unrecognized parameter: [ignore_conflicts]"}],"type":"illegal_argument_exception","reason":"request [/spir/material/_mapping] contains unrecognized parameter: [ignore_conflicts]"},"status":400}%
Then we've tried to update without ignore_conflicts=true
getting another error about conflicts:
curl -X PUT 'http://localhost:9200/spir/material/_mapping?ignore_conflicts=true' -d
'{
"material": {
"properties": {
"text": {
"type": "text",
"analyzer": "whitespace"
},
"headline": {
"type": "text", "analyzer": "whitespace"
},
"lead": {
"type": "text", "analyzer": "whitespace"
}
}
}
}'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/spir/material/_mapping] contains unrecognized parameter: [ignore_conflicts]"}],"type":"illegal_argument_exception","reason":"request [/spir/material/_mapping] contains unrecognized parameter: [ignore_conflicts]"},"status":400}
But there are no types other then material:
curl -XGET 'localhost:9200/spir?pretty'
{
"spir" : {
"aliases" : { },
"mappings" : {
"material" : {
"properties" : {
"author_string" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"genre_id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"headline" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"keywords" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"lang" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"lead" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"location" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"news_date" : {
"type" : "long"
},
"priority" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"products" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"rubric_id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"service_info" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"slug" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"text" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
}
},
"settings" : {
"index" : {
"creation_date" : "1503043085847",
"number_of_shards" : "5",
"number_of_replicas" : "1",
"uuid" : "uVQ-lzwqSNOpH2-AhM8tvg",
"version" : {
"created" : "5040299"
},
"provided_name" : "spir"
}
}
}
}