Kibana中使用elasticsearch

GET ${exampleVariable1} // _search
{
  "query": {
    "${exampleVariable2}": {} // match_all
  }
}

GET /_cat/nodes
GET /_cat/indices

GET /products


PUT megacorp/_doc/1
{
    "first_name" : "John",
    "last_name" :  "Smith",
    "age" :        25,
    "about" :      "I love to go rock climbing",
    "interests": [ "sports", "music" ]
}

GET /megacorp/_doc/1

PUT /megacorp

DELETE /megacorp

PUT /megacorp/employee/_doc/2
{
  "first_name": "Jane",
  "last_name": "Doe",
      "age" :        25,
    "about" :      "I love to go rock climbing",
    "interests": [ "sports", "music" ]
}


POST /megacorp/_update/1
{
  "doc": {
    "first_name" : "John",
    "last_name" :  "Smith",
    "age" :        25,
    "about" :      "I love to go rock climbing",
    "interests": [  "music" ]  
  }
}

POST /megacorp/_update_by_query
{
  "script": {
    "source": "ctx._source.age += params.increment",
    "params": {
      "increment": 1
    }
  },
  "query": {
    "match": {
      "first_name": "John"
    }
  }
}


GET /megacorp/_search

GET /megacorp/_mapping









GET /my-example-movies
PUT /my-example-movies
DELETE /my-example-movies

PUT /my-index-000001
{
  "settings": {
    "index": {
      "number_of_shards": 13,  
      "number_of_replicas": 2 
    }
  }
}
GET /_security/api_key

PUT /my-index-000001
{
  "settings": {
    "number_of_shards": 3,
    "number_of_replicas": 2
  }
}


PUT /test
{
  "settings": {
    "number_of_shards": 1
  },
  "mappings": {
    "properties": {
      "field1": { "type": "text" }
    }
  }
}

GET /test
GET /my-index-000001



GET /_search
{
  "query": {
    "match_all": {}
  }
}
GET customer/_doc/1
DELETE customer/_doc/1

POST /customer/_doc/1
{
    "name": "JSON Doe"
}

PUT /customer/_doc/1
{
    "name": "JSON Doe111"
}

GET /products/City bike

PUT /customerdata/external/1
{
    "name": "JSON Doe"
}
GET /customer
GET /bank/_mapping
GET /bank/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "range": {
            "age": {
              "gte": 10,
              "lte": 30
            }
          }
        }
      ]
    }
  }
}


POST _analyze
{
  "analyzer": "simple",
  "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}

PUT /bank/_bulk
{"index":{"_id":"1"}}
{"account_number":1,"balance":39225,"firstname":"Amber","lastname":"Duke","age":32,"gender":"M","address":"880 Holmes Lane","employer":"Pyrami","email":"[email protected]","city":"Brogan","state":"IL"}
{"index":{"_id":"6"}}
{"account_number":6,"balance":5686,"firstname":"Hattie","lastname":"Bond","age":36,"gender":"M","address":"671 Bristol Street","employer":"Netagy","email":"[email protected]","city":"Dante","state":"TN"}

你可能感兴趣的:(elasticsearch,elasticsearch,数据库,大数据)