Question about routing

It looks like each route key is mapped to a single shard. If I have very
course route keys - say each one accounts for one tenth of my documents,
would it be best for me to create some kind of surrogate route key so that
my documents don't get assigned to just ten shards?

I'm pretty sure I could build the key in such a way so I'd know exactly
what it is on update but on search I'd need to list a bunch of them. Would
that be really inefficient on search?

Or is this a horrible idea and I'd be better of creating an index per route
key?

Nik

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Hello Nik,

My guess is it's not a horrible idea and your searches shouldn't be slow if
you specify a bunch of routing keys. But I guess it's safer to test before
proceeding :slight_smile:

If you have a small amount of "natural" routing keys, like 10, I think it's
easier to just make 10 indices and use
aliaseshttp://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/when
you want to search through multiple routing keys. It just seems easier
for me, and as long as you don't have too many indices (eg: 200) in too
little nodes (eg: 2 small ones)

Best regards,
Radu

On Tue, Jul 23, 2013 at 6:03 PM, Nikolas Everett nik9000@gmail.com wrote:

It looks like each route key is mapped to a single shard. If I have very
course route keys - say each one accounts for one tenth of my documents,
would it be best for me to create some kind of surrogate route key so that
my documents don't get assigned to just ten shards?

I'm pretty sure I could build the key in such a way so I'd know exactly
what it is on update but on search I'd need to list a bunch of them. Would
that be really inefficient on search?

Or is this a horrible idea and I'd be better of creating an index per
route key?

Nik

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
http://sematext.com/ -- ElasticSearch -- Solr -- Lucene

--
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.
For more options, visit https://groups.google.com/groups/opt_out.