Mapping definition for ... has unsupported parameters: [index : no]

Hi together,

I'm trying to update from ES 1.7 to ES 2.1 and got some errors.

"Mapping definition for [data] has unsupported parameters: [index : no]".

"properties": {
"data" : {
"type" : "object",
"index" : "no"
}

Is "index : no" not valid any more? The documentation lists it still as valid: Mapping | Elasticsearch: The Definitive Guide [2.x] | Elastic

Under "data" a JSON object is stored and I want that Elasticsearch ignores the data completly.

Regards
Jonny

It does not make sense on an object.
An actually I think it was simply ignored in previous versions.
But from 2.0 the check is more strict .

I think you want to use enabled here.

See https://www.elastic.co/guide/en/elasticsearch/reference/2.2/object.html

Ok, I understand, thank you. :slight_smile:

But why I have to reindex all indexes for a feature that were ignored in past releases? That makes no sense to me. If the feature were ignored and had no effect then it would be much easier if Elasticsearch just delete it from the mapping and the current data instead to force me to reindex terabytes of data.

Is there a hope?

Yes, great, the option "enabled" is that what I need. The JSON data are stored, but not indexed. That is what I expected with "index : no".

Now the question: is it really necessary to reindex all indexes for an option that were ignored and had no effect in past releases of Elasticsarch?