# ES query returning unusual results

**URL:** https://discuss.elastic.co/t/es-query-returning-unusual-results/16596
**Category:** Elasticsearch
**Created:** [March 25, 2014, 8:46pm UTC](https://discuss.elastic.co/t/es-query-returning-unusual-results/16596 "2014-03-25T20:46:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![al\_smith951](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@al\_smith951](https://discuss.elastic.co/u/al_smith951)
#### Post date: [March 25, 2014, 8:46pm UTC](https://discuss.elastic.co/t/es-query-returning-unusual-results/16596/1 "2014-03-25T20:46:25Z")

</div>

I have an ES cluster running ES 1.0.1 on 10 nodes, where an index is has 5  
shards each with 1 replica.

Doing the following query kept alternately returning two distinct result  
counts, say 103799 and 104430. I've since carefully removed 5 nodes from my  
cluster and now for the same query I'm getting the same value consistently.  
Anyone any idea what might have been going on? Unfortunately I can't  
reproduce the behaviour any longer.

Regards,  
Al.

[http://es0:9200/](http://es0:9200/) [http://eng-ops.lab.nbttech.com:9200/heartbeats](http://eng-ops.lab.nbttech.com:9200/heartbeats)foo  
GET \_search  
{ "query": {  
"bool": {  
"must": [  
{  
"term": {  
"product": "bar"  
}  
},  
{  
"term": {  
"subtext": "true"  
}  
}  
]  
}  
}  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/8ebadbf6-6bfe-4839-9451-5bf3199ae6fb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8ebadbf6-6bfe-4839-9451-5bf3199ae6fb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)
#### Post date: [March 26, 2014, 5:47pm UTC](https://discuss.elastic.co/t/es-query-returning-unusual-results/16596/2 "2014-03-26T17:47:10Z")

</div>

If indexing was live/active, it probably was just your replicas not caught  
up to the primaries for split seconds.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a103b6af-3eb5-44b6-af0a-cd93dc1858de%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a103b6af-3eb5-44b6-af0a-cd93dc1858de%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:40am UTC](https://discuss.elastic.co/t/es-query-returning-unusual-results/16596/3 "2017-07-06T01:40:28Z")

</div>


