ElasticSearch的常用命令

GET _search
{
  "query": {
    "match_all": {}
  }
}


PUT /dangdang/

DELETE /dangdang


DELETE /ems

GET /_cat/indices?v


PUT /ems 
{
  "settings":{
    "number_of_replicas": 1,
    "number_of_shards": 1
  }
}



GET /gunspoc/_mapping


反正一个index 下面就只有一个type



PUT /gunspoc
{
  "mappings": {
    "properties": {
      "name": {
        "type": "keyword"
      },
      "age": {
        "type": "long"
      },
      "address": {
        "type": "text"
      },
      "birthday": {
        "type": "date"
      }
    }
  }
}



PUT /user
{
  "mappings": {
    "properties": {
      "name": 

你可能感兴趣的:(elasticsearch,elasticsearch,搜索引擎,大数据)