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


(Jonny) #1

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: https://www.elastic.co/guide/en/elasticsearch/guide/current/mapping-intro.html

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

Regards
Jonny


(David Pilato) #2

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 .


(David Pilato) #3

I think you want to use enabled here.

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


(Jonny) #4

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?


(Jonny) #5

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?


(system) #6