Option 3: both. Routing is "in which shard I want to send a doc or in which shards I want to run a search?"
Aliases are shortcuts to know in which indices/shards you want to query. It can be a simple list of indices and it may contain a routing key. Alias with routing is a very good approach IMHO. -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > Le 1 déc. 2014 à 13:49, Mohamed Hedi ABIDI <[email protected]> a écrit : > > Hello, > > > I'm planning a strategy for querying millions of docs : > > Option 1 - time based indexation + aliasing : explaned here => > http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/time-based.html > Option 2 - custom document routing : Explaned here => > http://www.elasticsearch.org/blog/customizing-your-document-routing/ > What are the differences or advantages when using routing or aliasing? > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/fb5ad148-3f23-409f-8fc0-b991eb0e73c1%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/D38CE760-3A29-4561-95DA-B66B8888F0BD%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
