Es Query Related

es mapping update

 POST /your table/_mapping/user
{
"properties": {
"age": {"type": "long"}
}
}


PUT /_template/user_statistics_template
{
  "template": "userstatistics-*",
  "mappings": {
    "statistics": {
      "_all": {
        "enabled": false
      },
      "properties": {
        "userID": {
          "type": "string",
          "index": "not_analyzed"
        },
        "@version": {
          "type": "string"
        },
        "computeTime": {
          "type": "date",
          "format": "strict_date_optional_time||epoch_millis"
        },
     }
    }
  },
"settings": {
"index.mapping.ignore_malformed": true,
"number_of_replicas": "1",
"number_of_shards": "30",
"refresh_interval": "50s",
"threadpool.bulk.type": "fixed",
"threadpool.bulk.size":"100",
"threadpool.bulk.queue_size":"300",
"threadpool.index.type":"fixed",
"threadpool.index.size":"50",
"threadpool.index.queue_size":"100",
"index.unassigned.node_left.delayed_timeout": "50m",
"index.routing.allocation.include._ip": "iplist"
  }
}
发布了17 篇原创文章 · 获赞 4 · 访问量 5651

猜你喜欢

转载自blog.csdn.net/jasstion/article/details/52492968
今日推荐