# Search path

**URL:** <https://discuss.elastic.co/t/search-path/13416>\
**Category:** Elasticsearch\
**Created:** [August 30, 2013, 11:23pm UTC](https://discuss.elastic.co/t/search-path/13416 "2013-08-30T23:23:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [August 30, 2013, 11:23pm UTC](https://discuss.elastic.co/t/search-path/13416/1 "2013-08-30T23:23:48Z")

</div>

When a search query is executed does elasticsearch go to each node to query  
for the term? I am wondering as you add more nodes and grow your cluster  
does the search slow down because it now has to communite and aggregate  
data from all the nodes?

--  
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:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 31, 2013, 6:52pm UTC](https://discuss.elastic.co/t/search-path/13416/2 "2013-08-31T18:52:28Z")

</div>

Only the nodes which hold shards of the index you query are consulted.  
Replica shards are consulted in a round-robin fashion. You can control this  
with the preference setting  
[http://www.elasticsearch.org/guide/reference/api/search/preference/](http://www.elasticsearch.org/guide/reference/api/search/preference/)

Each network operation "slows down" responses, yes (if you name 4-5ms a  
slow down). This is balanced out with the higher concurrency level which  
executes queries faster because shards are smaller, so, the more nodes you  
add, you can ignore this effect.

Jörg

--  
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:18am UTC](https://discuss.elastic.co/t/search-path/13416/3 "2017-07-06T02:18:40Z")

</div>


