# Nodes and shard chatter

**URL:** <https://discuss.elastic.co/t/nodes-and-shard-chatter/4553>\
**Category:** Elasticsearch\
**Created:** [June 4, 2011, 2:13pm UTC](https://discuss.elastic.co/t/nodes-and-shard-chatter/4553 "2011-06-04T14:13:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Loy](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@Paul\_Loy](https://discuss.elastic.co/u/Paul_Loy)\
**Post date:** [June 4, 2011, 2:13pm UTC](https://discuss.elastic.co/t/nodes-and-shard-chatter/4553/1 "2011-06-04T14:13:45Z")

</div>

Hi Shay,

I was just wondering how searches are performed. I guess it's a kind of map  
reduce where either each shard or each node is queried and then the  
initiating node collates.

So what happens if for a particular index, you have more nodes than shards?  
Say you have 3 nodes and 2 shards. Does a search operation still create 3  
requests - one for each node - or does it only query the nodes with shards?

I'm just interested is all. No issues.

Thanks,

## --

Paul Loy  
[paul@keteracel.com](mailto:paul@keteracel.com)  
[http://uk.linkedin.com/in/paulloy](http://uk.linkedin.com/in/paulloy)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 4, 2011, 4:40pm UTC](https://discuss.elastic.co/t/nodes-and-shard-chatter/4553/2 "2011-06-04T16:40:51Z")

</div>

It only queries nodes where the shards exists, it does not go to all the nodes each time. By default, round robin across replicas, but you can control that using the preference option: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/preference.html).

On Saturday, June 4, 2011 at 5:13 PM, Paul Loy wrote:

> Hi Shay,
> 
> I was just wondering how searches are performed. I guess it's a kind of map reduce where either each shard or each node is queried and then the initiating node collates.
> 
> So what happens if for a particular index, you have more nodes than shards? Say you have 3 nodes and 2 shards. Does a search operation still create 3 requests - one for each node - or does it only query the nodes with shards?
> 
> I'm just interested is all. No issues.
> 
> Thanks,
> 
> ## --
> 
> Paul Loy  
> [paul@keteracel.com](mailto:paul@keteracel.com) ([mailto:paul@keteracel.com](mailto:paul@keteracel.com))  
> [http://uk.linkedin.com/in/paulloy](http://uk.linkedin.com/in/paulloy)

---

<div class="post-metadata">

**Author:** ![fashionalwallet](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fashionalwallet](https://discuss.elastic.co/u/fashionalwallet)\
**Post date:** [June 10, 2011, 1:09am UTC](https://discuss.elastic.co/t/nodes-and-shard-chatter/4553/3 "2011-06-10T01:09:16Z")

</div>

- deleted -

---

<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, 4:04am UTC](https://discuss.elastic.co/t/nodes-and-shard-chatter/4553/4 "2017-07-06T04:04:04Z")

</div>


