How filter range date in CreateDate

Assuming the field is a date field. You can use a DSL (select the top right edit as Quesry DSL) to do this.

{
  "query": {
    "range": {
      "createDate": {
        "gte": "now-30d",
        "lte": "now-20d"
      }
    }
  }
}

This would filter to anything between 30 and 20 days ago.

Thanks, But Not working

How is it not working? Is it just not returning any hits, does it produce an error?
What is the exact filter you added?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.