Where document is analyzed and processed

  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

It does it on the node that holds the shard.

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

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?