How to use dsl

Hi all,

I want to learn elasticsearch DSL but i dont know what is the use of query , filter. I want practical questions which teach me actual use of particular function. Sorry for this silly question but i want to learn DSL with practical questions

Hi there ,
I think i might be able to help you this replay...
suppose you have a lot of data of any thing like ecommerce sites ,or any log data on es.
if you want to get range data than you can use filter

GET index_name/_search
{
  "query": { 
    "bool": { 
      "filter": [ 
        { "range": { "date": { "gte": "2022-07-15" }}}
      ]
    }
  }
}

1 Like

Hi @anime_lover , thank you for replying me i will try

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