# Problem with query using a date range

**URL:** <https://discuss.elastic.co/t/problem-with-query-using-a-date-range/10005>\
**Category:** Elasticsearch\
**Created:** [December 9, 2012, 7:39pm UTC](https://discuss.elastic.co/t/problem-with-query-using-a-date-range/10005 "2012-12-09T19:39:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Bryan\_Mahoney](https://discuss.elastic.co/u/Bryan_Mahoney)\
**Post date:** [December 9, 2012, 7:39pm UTC](https://discuss.elastic.co/t/problem-with-query-using-a-date-range/10005/1 "2012-12-09T19:39:47Z")

</div>

Hi all,

I'm a relatively new ES user and I've run into an issue querying an index  
with a date range attached.  
The query returns data when I try it locally (ES version 0.19.8), but my  
remote installation (on EC2 using version 0.19.12) won't return results.

I've recreated the index a number of times but I keep striking out.

I've created the following gist with the query in question as well as the  
results returned when I omit the date range.

> <https://gist.github.com/bryanmtl/4246638>

Any help on this would be great appreciated.

Cheers,  
Bryan

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:00am UTC](https://discuss.elastic.co/t/problem-with-query-using-a-date-range/10005/2 "2017-07-06T03:00:41Z")

</div>


