# Ran same query but gave no result during the second run

**URL:** <https://discuss.elastic.co/t/ran-same-query-but-gave-no-result-during-the-second-run/8958>\
**Category:** Elasticsearch\
**Created:** [September 7, 2012, 9:19pm UTC](https://discuss.elastic.co/t/ran-same-query-but-gave-no-result-during-the-second-run/8958 "2012-09-07T21:19:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msya](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@msya](https://discuss.elastic.co/u/msya)\
**Post date:** [September 7, 2012, 9:19pm UTC](https://discuss.elastic.co/t/ran-same-query-but-gave-no-result-during-the-second-run/8958/1 "2012-09-07T21:19:26Z")

</div>

I ran this query two times:

{  
"query": {  
"field": {  
"message": {  
"query": "Doug"  
}  
}  
},  
"size": 10,  
"filter": {  
"bool": {  
"must": [  
{  
"and": [  
{  
"term": {  
"userId": 111  
}  
},  
{  
"term": {  
"groupId": 336  
}  
},  
{  
"numeric\_range": {  
"postedDate": {  
"from": "2008-01-01T00:00:00Z",  
"to": "2012-09-07T20:51:14Z"  
}  
}  
}  
]  
}  
]  
}  
}  
}

The first time I run it gives the right result. But, the second time I run  
it, there are no results returned. I have two nodes running on EC2. Why is  
my query giving no results when I search again?

--

---

<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:13am UTC](https://discuss.elastic.co/t/ran-same-query-but-gave-no-result-during-the-second-run/8958/2 "2017-07-06T03:13:38Z")

</div>

Closed on July 6, 2017, 3:13am UTC


