how to find the date range in uri request search in elasticsearch -


i have search in need find delta of data http://localhost:9200/index/index_type/_search?q=sampledate[21-02-2015 22-02-2015]

but search giving me error help?

you can use below query:

get /index_name/index_type/_search?q=datecreated:[2016-01-06+to+2016-01-07] 

this work if datecreated date field. won't work string


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -