# Less records are searched in query if one of the elastic search node is killed out of three running elastic search nodes

**URL:** <https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234>\
**Category:** Elasticsearch\
**Created:** [April 28, 2014, 1:22pm UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234 "2014-04-28T13:22:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nishant\_Kumar](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Nishant\_Kumar](https://discuss.elastic.co/u/Nishant_Kumar)\
**Post date:** [April 28, 2014, 1:22pm UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234/1 "2014-04-28T13:22:37Z")

</div>

I am indexing data in 3 elastic search nodes and performing following steps

Steps:

1. Start all three nodes of elastic search(replication factor is 2 and no of shards 5).
2. Insert data and make sure that elastic search contains some data let's say 20000.
3. Now fire query through REST client to search all data.
4. Verify that 20000 results are returned and status is shown in query server logs.
5. Now kill one elastic search just after firing query from REST client.
6. Less than 20000 records are searched

Is there any reason due to which i am getting less records or Is there any configuration change by which i can get all the  
records ??

--  
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/a68696b0-5250-4567-9a8a-27f75c2394c8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a68696b0-5250-4567-9a8a-27f75c2394c8%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:** [April 28, 2014, 1:33pm UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234/2 "2014-04-28T13:33:39Z")

</div>

Can you please clarify, when you say "Less than 20000 records are  
searched", what exactly do you mean? I.e., how do you know it was less than  
20000? Thanks.

--  
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/1df90bc5-14a7-4d0e-b403-7ad463c84db9%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1df90bc5-14a7-4d0e-b403-7ad463c84db9%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Nishant\_Kumar](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Nishant\_Kumar](https://discuss.elastic.co/u/Nishant_Kumar)\
**Post date:** [April 29, 2014, 6:27am UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234/3 "2014-04-29T06:27:16Z")

</div>

Hi Binh Ly,

Thanks for your quick reply. Problem which i am exactly facing is,

Initially i have 20000 records in my elastic Search cluster with  
replication factor 2 and no of nodes are 3.  
When i am querying from REST API, i am able to get all the 20000 records. I  
am able to check the result size on REST API.

In case if i am shutting down one of my node prior to firing query,i am  
able to get all the 20000 records as the replication factor is 2.  
But when i am shutting down one of my Elasticsearch node just after firing  
the query in that case no of hits are less then 20000 and result size is  
also less then 20000.

On Monday, 28 April 2014 19:03:39 UTC+5:30, Binh Ly wrote:

> Can you please clarify, when you say "Less than 20000 records are  
> searched", what exactly do you mean? I.e., how do you know it was less than  
> 20000? Thanks.

--  
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/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 29, 2014, 6:38am UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234/4 "2014-04-29T06:38:40Z")

</div>

In the later request, can you see that some shards failed?  
Could you gist the full result you get in that case?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 29 avr. 2014 à 08:27, Nishant Kumar [nish.abes@gmail.com](mailto:nish.abes@gmail.com) a écrit :

Hi Binh Ly,

Thanks for your quick reply. Problem which i am exactly facing is,

Initially i have 20000 records in my elastic Search cluster with replication factor 2 and no of nodes are 3.  
When i am querying from REST API, i am able to get all the 20000 records. I am able to check the result size on REST API.

In case if i am shutting down one of my node prior to firing query,i am able to get all the 20000 records as the replication factor is 2.  
But when i am shutting down one of my Elasticsearch node just after firing the query in that case no of hits are less then 20000 and result size is also less then 20000.

> On Monday, 28 April 2014 19:03:39 UTC+5:30, Binh Ly wrote:  
> Can you please clarify, when you say "Less than 20000 records are searched", what exactly do you mean? I.e., how do you know it was less than 20000? Thanks.

--  
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/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/228eb3aa-ae70-4da2-a336-a4f921a0fd15%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/256E3941-37F8-4251-BE63-67F7100978FD%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/256E3941-37F8-4251-BE63-67F7100978FD%40pilato.fr).  
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:32am UTC](https://discuss.elastic.co/t/less-records-are-searched-in-query-if-one-of-the-elastic-search-node-is-killed-out-of-three-running-elastic-search-nodes/17234/5 "2017-07-06T01:32:55Z")

</div>

Closed on July 6, 2017, 1:32am UTC


