How to search in date time Elasticsearch?


(Ngọc Phạm) #1

Sorry, im new in elasticsearch and i have one question.

if i have example like this:
index....type....user...date
twitter..tweet..mrA...2015/11/9
twitter..tweet..mrB...2015/11/10
twitter..tweet..mrC..2015/11/11

How do we can search any value from day9->10 with elasticsearch?
in my example , result is mrA and mrB

Thanks for your help :smile:


(Magnus Bäck) #2

Have you read the documentation on date range queries?

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#ranges-on-dates


(Ngọc Phạm) #3

thanks you


(system) #4