Route documents at index time to a particular shard


(ElasticSearch Users mailing list) #1

Hi,

Can you please tell me if there is a plugin that I can use during indexing
which will let me direct a document to a particular shard? So that I can
set the shardId and send the document as the request to that shard?

Thanks,
Sandeep

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dec2f249-4c1a-4c56-88d0-2a9493e5ec4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Adrien Grand) #2

You cannot specify a shard but you can give a routing value that will make
sure that all documents that have the same routing value are on the same
shard.
http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/routing-value.html

On Thu, Aug 21, 2014 at 8:04 AM, 'Sandeep Ramesh Khanzode' via
elasticsearch elasticsearch@googlegroups.com wrote:

Hi,

Can you please tell me if there is a plugin that I can use during indexing
which will let me direct a document to a particular shard? So that I can
set the shardId and send the document as the request to that shard?

Thanks,
Sandeep

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/dec2f249-4c1a-4c56-88d0-2a9493e5ec4a%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/dec2f249-4c1a-4c56-88d0-2a9493e5ec4a%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
Adrien Grand

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j68c-7Ch%2BfJ0h4sz_hCnCUEv%3DQe5RFBMfzRC7ycs7hEzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3