Hy,

I have a corrupted index in an elasticsearch cluster. The index is 
corrupted due to bad mappings. As you can see in example, there are two 
fields with same name and different mappings - one is string/doc_values and 
one is date, and in Lucene this is not possible, due to "doc_values" 
settings.

{
    "test1": {
        "properties": {
            "date": {
                "format": "dd/MMMM/yyyy: HH: mm: ssZ",
                "type": "date"
            }
        }
    }
}


{
    "test2": {
        "properties": {
            "date": {
                "index": "not_analyzed",
                "fielddata": {
                    "format": "doc_values"
                },
                "doc_values": true
            }
        }
    }
}

The problem is that I'm not able to start the index in order to reindex the 
data from it. (The error is [WARN ][cluster.action.shard     ] [cluster] 
[index][1] sending failed shard for [index][1], 
node[b2yMUmvXQFy8LFd8ei6DZQ], [P], s[INITIALIZING], indexUUID 
[I_zoR-4SS02WEfRNKFc6MA], reason [Failed to start shard, message 
[IndexShardGatewayRecoveryException[[index][1] failed recovery]; nested: 
IllegalArgumentException[cannot change DocValues type from BINARY to 
SORTED_SET for field "date"]; ]]).

Is it possible to somehow recover the data from corrupted index and put it 
in a healthy index ? (I'm using Elasticsearch 1.1.1)

Thank you,

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8d3f0501-9fb8-4406-ae82-b85f7f29185a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to