# Hits number decrease when adding new node

**URL:** <https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780>\
**Category:** Elasticsearch\
**Created:** [February 18, 2013, 5:16pm UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780 "2013-02-18T17:16:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 18, 2013, 5:16pm UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/1 "2013-02-18T17:16:47Z")

</div>

Hi,

I did some testing of several search words with 1 node, 1 index with 5  
shards and no replicas.

Later I set 1 replica for the index, activated a new node with same cluster  
name on another machine, the node identified the master and created the  
replicas.

I ran the same text search as before, this time 2 nodes running, and I got  
a smaller amount of hits for the same search text.

I also tried running only node 1, and also only node 2, but I still get the  
same missing results.

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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![drewr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drewr/32/7803_2.png) [@drewr](https://discuss.elastic.co/u/drewr)\
**Post date:** [February 18, 2013, 6:38pm UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/2 "2013-02-18T18:38:56Z")

</div>

Ophir Michaeli wrote:

> Later I set 1 replica for the index, activated a new node with same  
> cluster name on another machine, the node identified the master and  
> created the replicas.
> 
> I ran the same text search as before, this time 2 nodes running,  
> and I got a smaller amount of hits for the same search text.

Double check that the primaries still have the number you thought  
they did. It could be that something changed in your index and you  
perhaps forgot? Even better, check that the primaries and replicas  
have the same number of docs. An easy way to check is with `es shards -v` using the [GitHub - elastic/es2unix: Command-line ES](https://github.com/elasticsearch/es2unix)  
utility. The doc counts for each shard's `p' and `r' should match.

-Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 19, 2013, 9:30am UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/3 "2013-02-19T09:30:35Z")

</div>

When I shut down node 2 that has the replicas and work only with node 1  
with the primaries,

I still get smaller amount of hits than before I activated the replica for  
the index.

Doesn't it mean that the problem is not about different number of docs in  
primaries and replicas?

Thanks, Ophir

On Monday, February 18, 2013 7:16:47 PM UTC+2, Ophir Michaeli wrote:

> Hi,
> 
> I did some testing of several search words with 1 node, 1 index with 5  
> shards and no replicas.
> 
> Later I set 1 replica for the index, activated a new node with same  
> cluster name on another machine, the node identified the master and created  
> the replicas.
> 
> I ran the same text search as before, this time 2 nodes running, and I got  
> a smaller amount of hits for the same search text.
> 
> I also tried running only node 1, and also only node 2, but I still get  
> the same missing results.
> 
> 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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 19, 2013, 9:36am UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/4 "2013-02-19T09:36:08Z")

</div>

When I shut down node 2 that has the replicas and work only with node 1  
with the primaries,

I still get smaller amount of hits than before I activated the replica for  
the index.

Doesn't it mean that the problem is not about different number of docs in  
primaries and replicas?

Thanks, Ophir

On Monday, February 18, 2013 8:38:56 PM UTC+2, Drew Raines wrote:

> Ophir Michaeli wrote:
> 
> > Later I set 1 replica for the index, activated a new node with same  
> > cluster name on another machine, the node identified the master and  
> > created the replicas.
> > 
> > I ran the same text search as before, this time 2 nodes running,  
> > and I got a smaller amount of hits for the same search text.
> 
> Double check that the primaries still have the number you thought  
> they did. It could be that something changed in your index and you  
> perhaps forgot? Even better, check that the primaries and replicas  
> have the same number of docs. An easy way to check is with `es shards -v` using the [GitHub - elastic/es2unix: Command-line ES](https://github.com/elasticsearch/es2unix)  
> utility. The doc counts for each shard's `p' and `r' should match.
> 
> -Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [February 19, 2013, 10:03am UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/5 "2013-02-19T10:03:56Z")

</div>

Hey Ophir,

can you maybe give some more information about what is going on?  
are you doing a search and the number of returned hits is less than before  
or do you look at the number of documents in the index?

simon

On Tuesday, February 19, 2013 10:36:08 AM UTC+1, Ophir Michaeli wrote:

> When I shut down node 2 that has the replicas and work only with node 1  
> with the primaries,
> 
> I still get smaller amount of hits than before I activated the replica for  
> the index.
> 
> Doesn't it mean that the problem is not about different number of docs in  
> primaries and replicas?
> 
> Thanks, Ophir
> 
> On Monday, February 18, 2013 8:38:56 PM UTC+2, Drew Raines wrote:
> 
> > Ophir Michaeli wrote:
> > 
> > > Later I set 1 replica for the index, activated a new node with same  
> > > cluster name on another machine, the node identified the master and  
> > > created the replicas.
> > > 
> > > I ran the same text search as before, this time 2 nodes running,  
> > > and I got a smaller amount of hits for the same search text.
> > 
> > Double check that the primaries still have the number you thought  
> > they did. It could be that something changed in your index and you  
> > perhaps forgot? Even better, check that the primaries and replicas  
> > have the same number of docs. An easy way to check is with `es shards -v` using the [GitHub - elastic/es2unix: Command-line ES](https://github.com/elasticsearch/es2unix)  
> > utility. The doc counts for each shard's `p' and `r' should match.
> > 
> > -Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ophir\_Michaeli](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@Ophir\_Michaeli](https://discuss.elastic.co/u/Ophir_Michaeli)\
**Post date:** [February 19, 2013, 12:08pm UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/6 "2013-02-19T12:08:21Z")

</div>

Yes, I'm doing search and the number of returned hits is less than before  
setting 1 replica and opening another node.

On Tuesday, February 19, 2013 12:03:56 PM UTC+2, simonw wrote:

> Hey Ophir,
> 
> can you maybe give some more information about what is going on?  
> are you doing a search and the number of returned hits is less than before  
> or do you look at the number of documents in the index?
> 
> simon
> 
> On Tuesday, February 19, 2013 10:36:08 AM UTC+1, Ophir Michaeli wrote:
> 
> > When I shut down node 2 that has the replicas and work only with node 1  
> > with the primaries,
> > 
> > I still get smaller amount of hits than before I activated the replica  
> > for the index.
> > 
> > Doesn't it mean that the problem is not about different number of docs in  
> > primaries and replicas?
> > 
> > Thanks, Ophir
> > 
> > On Monday, February 18, 2013 8:38:56 PM UTC+2, Drew Raines wrote:
> > 
> > > Ophir Michaeli wrote:
> > > 
> > > > Later I set 1 replica for the index, activated a new node with same  
> > > > cluster name on another machine, the node identified the master and  
> > > > created the replicas.
> > > > 
> > > > I ran the same text search as before, this time 2 nodes running,  
> > > > and I got a smaller amount of hits for the same search text.
> > > 
> > > Double check that the primaries still have the number you thought  
> > > they did. It could be that something changed in your index and you  
> > > perhaps forgot? Even better, check that the primaries and replicas  
> > > have the same number of docs. An easy way to check is with `es shards -v` using the [GitHub - elastic/es2unix: Command-line ES](https://github.com/elasticsearch/es2unix)  
> > > utility. The doc counts for each shard's `p' and `r' should match.
> > > 
> > > -Drew

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:50am UTC](https://discuss.elastic.co/t/hits-number-decrease-when-adding-new-node/10780/7 "2017-07-06T02:50:46Z")

</div>

Closed on July 6, 2017, 2:50am UTC


