我正在使用elasticsearch-1.4.1,而当#39;尝试创建索引时,我收到以下错误

时间:2015-02-10 09:27:27

标签: elasticsearch

我的查询

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"}
      }
        }
    }
}'

错误

  

{"错误":" MapperParsingException [mapping [logs]];嵌套:   ElasticsearchIllegalArgumentException [找不到doc_values_format   [硬盘]]; ""状态" 400}

请建议我。谢谢。

1 个答案:

答案 0 :(得分:2)

弹性搜索1.4中对doc_values_format的支持为removed - 请尝试从映射中删除