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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -