# Where document is analyzed and processed

**URL:** <https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586>\
**Category:** Elasticsearch\
**Created:** [June 29, 2015, 11:21pm UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586 "2015-06-29T23:21:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Santos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipe_santos/32/3511_2.png) [@Felipe\_Santos](https://discuss.elastic.co/u/Felipe_Santos)\
**Post date:** [June 29, 2015, 11:21pm UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586/1 "2015-06-29T23:21:25Z")

</div>

1. If a have cluster with five machines, and one of thoses machines listing elasticsearch http server.

2. An index configured with 3 shards and 2 replicas.

3. I send a document by http transport to the elasticsearch.

Elasticsearch do all computations for index on the http client or send the pure document to the responsible shard to do the computations?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 29, 2015, 11:22pm UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586/2 "2015-06-29T23:22:24Z")

</div>

It does it on the node that holds the shard.

---

<div class="post-metadata">

**Author:** ![Felipe\_Santos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipe_santos/32/3511_2.png) [@Felipe\_Santos](https://discuss.elastic.co/u/Felipe_Santos)\
**Post date:** [June 29, 2015, 11:23pm UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586/3 "2015-06-29T23:23:39Z")

</div>

Even if I use transport protocol?  
I have another doubts about elasticsearch internals, are there any doc?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 29, 2015, 11:28pm UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586/4 "2015-06-29T23:28:32Z")

</div>

It calculates which shard the doc needs to live on on the node that receives the request, then it sends it to that shard+node and does the indexing.

What other questions do you have?

---

<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, 12:04am UTC](https://discuss.elastic.co/t/where-document-is-analyzed-and-processed/24586/5 "2017-07-06T00:04:40Z")

</div>


