Questions on custom routing


(Chetana) #1

I want to create an index repo with multiple (3) shards and
use explict/custom _routing while indexing. I have a couple of questions,
can somebody please answer

  1. If I explictly set _routing,
    does ES take care of load balancing of index data,
    indexrequest, search request
    If ES does not take care of load balancing, how to plugin
    custom code which does load balancing
  2. The doumentation says (
    http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-routing-field.html) that the
    id uniquess can not be guaranteed if one sets _routing explictly. If an
    application can generate unique id and set then is there any issue
    still in guaranteeing uniqueness

Thanks,

--
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/46de2fe5-828b-43ec-9bc8-5efbf72d7989%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(ElasticSearch Users mailing list) #2
  1. ES will use your routing value to do indexing and searches and narrow it
    down directly (specifically helpful for searches) to a single shard.

  2. If you produce your own document ID, then ES will just use it without
    any issues.

--
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/e81b273b-47fe-4645-bb7e-e13a6120cbdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3