我正在使用 elasticsearch-1.4.1,当我尝试创建索引时,出现以下错误
I am using elasticserach-1.4.1 and when I'm trying to create an index, I am getting the following error
我的查询
curl -XPOST 10.1.1.108:9200/fw -d '{
"settings" : {
"number_of_shards" : 2,
"number_of_replicas": 0,
"index.store.compress.stored":"true",
"index.store.compress.tv":"true",
"index.query.default_field":"rawlog",
"compress.default.type":"snappy",
"index.merge.policy.floor_segment":100,
"index.merge.policy.max_merge_at_once":100,
"es.batch.size.bytes" : "134217728",
"index.translog.flush_threshold_size": "536870912",
"network.tcp.keep_alive": "true",
"index.store.type":"mmapfs",
"client.transport.ping_timeout":"180s"
},
"mappings" : {
"logs" : {
"_source" : { "enabled" : true,"compress":true,"compress_threshold":"100b","compress.default.type":"snappy"},
"_all":{"enabled" : false},
"properties" : {
"cust_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"devi_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"evt_date": {"type" : "date","index" : "not_analyzed","format" : "yyyy-MM-dd" ,"fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"first_occurance": {"type" : "date","format" : "yyyy-MM-dd HH:mm:ss","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"hr":{ "type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"type": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"action": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"status" : { "type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"src" : { "type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"},"doc_values_format" : "disk"},
"dst" : { "type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"dst_port" : { "type" : "integer","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"rowid": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"url": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"sentinel_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"src_name": {"type" : "string"},
"dst_name": {"type" : "string"},
"rawlog" : { "type" : "string"}
}
}
}
}'
错误
{"error":"MapperParsingException[mapping [logs]]; nested:
ElasticsearchIllegalArgumentException[failed to find doc_values_format
[disk]]; ","status":400}
请提前建议me.Thanks。
在 elasticsearch 1.4 中 removed 支持 doc_values_format
- 尝试从您的映射中删除它
我的查询
curl -XPOST 10.1.1.108:9200/fw -d '{
"settings" : {
"number_of_shards" : 2,
"number_of_replicas": 0,
"index.store.compress.stored":"true",
"index.store.compress.tv":"true",
"index.query.default_field":"rawlog",
"compress.default.type":"snappy",
"index.merge.policy.floor_segment":100,
"index.merge.policy.max_merge_at_once":100,
"es.batch.size.bytes" : "134217728",
"index.translog.flush_threshold_size": "536870912",
"network.tcp.keep_alive": "true",
"index.store.type":"mmapfs",
"client.transport.ping_timeout":"180s"
},
"mappings" : {
"logs" : {
"_source" : { "enabled" : true,"compress":true,"compress_threshold":"100b","compress.default.type":"snappy"},
"_all":{"enabled" : false},
"properties" : {
"cust_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"devi_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"evt_date": {"type" : "date","index" : "not_analyzed","format" : "yyyy-MM-dd" ,"fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"first_occurance": {"type" : "date","format" : "yyyy-MM-dd HH:mm:ss","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"hr":{ "type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"type": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"action": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"status" : { "type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"src" : { "type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"},"doc_values_format" : "disk"},
"dst" : { "type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"dst_port" : { "type" : "integer","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"rowid": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"url": {"type" : "string","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"sentinel_id": {"type" : "long","index" : "not_analyzed","fielddata": {"format": "doc_values"}, "doc_values_format" : "disk"},
"src_name": {"type" : "string"},
"dst_name": {"type" : "string"},
"rawlog" : { "type" : "string"}
}
}
}
}'
错误
{"error":"MapperParsingException[mapping [logs]]; nested: ElasticsearchIllegalArgumentException[failed to find doc_values_format [disk]]; ","status":400}
请提前建议me.Thanks。
在 elasticsearch 1.4 中 removed 支持 doc_values_format
- 尝试从您的映射中删除它