Link Search Menu Expand Document

API

query

return only certain fields

{
    "_source": ["user", "message", ...],
    "query": ...,
    "size": ...
}

delete

delete by query

POST /my-index-000001/_delete_by_query
{
  "query": {
    "match": {
      "user.id": "elkbee"
    }
  }
}
  • delete all
POST my-index-000001/_delete_by_query?conflicts=proceed
{
  "query": {
    "match_all": {}
  }
}

Copyright © 2020 Thence LLC