# Distributed search performance

**URL:** <https://discuss.elastic.co/t/distributed-search-performance/127682>\
**Category:** Elasticsearch\
**Created:** [April 11, 2018, 5:05pm UTC](https://discuss.elastic.co/t/distributed-search-performance/127682 "2018-04-11T17:05:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmarlow](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@dmarlow](https://discuss.elastic.co/u/dmarlow)\
**Post date:** [April 11, 2018, 5:05pm UTC](https://discuss.elastic.co/t/distributed-search-performance/127682/1 "2018-04-11T17:05:45Z")

</div>

I currently have a 3 node cluster where each node has a complete copy of every index.

Based on the documentation on distributed search queries found here: [https://www.elastic.co/guide/en/elasticsearch/guide/current/\_query\_phase.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/_query_phase.html)

Do queries still go beyond the current node when searching if a node has all of the data it needs? If so, is there a way to configure things such that a query uses only the current node?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 11, 2018, 5:26pm UTC](https://discuss.elastic.co/t/distributed-search-performance/127682/2 "2018-04-11T17:26:36Z")

</div>

You can control this by using [preference](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-request-preference.html), especially the `_local` one.

---

<div class="post-metadata">

**Author:** ![Thomas\_Doman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomas_doman/32/11409_2.png) [@Thomas\_Doman](https://discuss.elastic.co/u/Thomas_Doman)\
**Post date:** [April 11, 2018, 8:13pm UTC](https://discuss.elastic.co/t/distributed-search-performance/127682/3 "2018-04-11T20:13:48Z")

</div>

If, as he says, the index is fully replicated on every node in the cluster, won't ES automatically prefer the `_local` one?

---

<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:** [May 9, 2018, 8:13pm UTC](https://discuss.elastic.co/t/distributed-search-performance/127682/4 "2018-05-09T20:13:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
