# Elastic searh Query problem

**URL:** <https://discuss.elastic.co/t/elastic-searh-query-problem/203809>\
**Category:** Elasticsearch\
**Created:** [October 16, 2019, 10:12am UTC](https://discuss.elastic.co/t/elastic-searh-query-problem/203809 "2019-10-16T10:12:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andree\_Tago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andree_tago/32/46143_2.png) [@Andree\_Tago](https://discuss.elastic.co/u/Andree_Tago)\
**Post date:** [October 16, 2019, 10:12am UTC](https://discuss.elastic.co/t/elastic-searh-query-problem/203809/1 "2019-10-16T10:12:02Z")

</div>

Hi all i have this query and when i un it i get some result error

{  
"query": {  
"bool": {  
"must": [  
{  
"range": {  
"timestamp":{"from" : "01/01/2015 00:00:00.0", "to" : "12/01/2015 23:59:59.999" }  
}  
}  
]  
}  
}  
}

By this query in the correct way normalemently i get all recored between 01/01/2015 and 12/01/2015, but here i get some wrongs results i get recods related to timestamp 2018 and other error dates.  
can you help me please if the query in eror or maybe i chage the query syntax

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 16, 2019, 1:16pm UTC](https://discuss.elastic.co/t/elastic-searh-query-problem/203809/2 "2019-10-16T13:16:05Z")

</div>

can you provide a full reproduction including index/mapping/document creation. Thanks!

---

<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:** [November 13, 2019, 1:16pm UTC](https://discuss.elastic.co/t/elastic-searh-query-problem/203809/3 "2019-11-13T13:16:14Z")

</div>

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