代码改变世界

ElasticSearch indexing on timestamp

2016-01-28 09:07  三犬风  阅读(572)  评论(0)    收藏  举报
curl -XPUT http://localhost:9200/demo2 -d '
{
"mappings": {
"log" : {
        "_timestamp" : {
          "enabled" : true
        },
        "properties" : {
          "machineid" : {
            "type" : "string",
            "index" : "not_analyzed"
          }
        }
        }
}
}'