hayio
4/24/2017 - 3:41 PM

Elastic usefull queries to use in Kibana sense

Elastic usefull queries to use in Kibana sense

# all docs
GET indexname/_search
{
   "query": {
      "match_all": {}
   }, "size": 1000
}
# by field name
GET indexname/_search
{
   "query": {
      "match": {
         "fieldname.raw": "Envisat"
      }
   }, "size": 1000
}
# get all mappings
GET esa_search/_mapping?pretty=true
# get all index definitions
GET _cat/indices?v
# delete all index docs
POST indexname/_delete_by_query
{
   "query": {
      "match_all": {}
   }
}
# delete index
DELETE indexname