Elasticsearch Snippets Link to heading

Retrieve Selected Fields Link to heading

POST /mycollection/_search
{
  "fields": [
    "only_this_field"
  ],
  "_source": false,
}
  • _source: false: Don’t return whole source document, only required fields

Date Range Boolean Filter Link to heading

POST /mycollection/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "range": {
            "start_time": {
              "gte": "2024-02-05T18:18:24.321Z"
            }
          }
        }
      ]
    }
  }
}
  • [[snippets|Snippets]]