Single index for multiple users with routing

I am planning to use single index for multiple users with routing

Based on the routing parameter, docs of a user will be stored in a shard.
What will happen, if that shard's size reaches the max value? What is the
solution?

Regards,
Karthick

--
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.

You can create for example an index with alias on top of it.
When you hit the max value (for your use case), create a new index and use the same alias on top of it.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 juil. 2013 à 10:16, Karthick Chokkalingam ckarthickc@gmail.com a écrit :

I am planning to use single index for multiple users with routing

Based on the routing parameter, docs of a user will be stored in a shard. What will happen, if that shard's size reaches the max value? What is the solution?

Regards,
Karthick

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.

--
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.

Thank you.

So I have to create alias like below( in addition with common index alias
user1 ) after hitting max value and use only
http://localhost:9200/user1(alias)/ for index and search. Please correct me
if I am wrong.

curl -XPOST 'http://localhost:9200/_aliases' -d '
{
"actions" : [
{
"add" : {
"index" : "user-index-user1",
"alias" : "user1",
"filter" : { "term" : {"userid" : 1 } },
"routing" : "1" }
}
]
}'

On Friday, July 12, 2013 2:00:59 PM UTC+5:30, David Pilato wrote:

You can create for example an index with alias on top of it.
When you hit the max value (for your use case), create a new index and use
the same alias on top of it.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 juil. 2013 à 10:16, Karthick Chokkalingam <ckart...@gmail.com<javascript:>>
a écrit :

I am planning to use single index for multiple users with routing

Based on the routing parameter, docs of a user will be stored in a shard.
What will happen, if that shard's size reaches the max value? What is the
solution?

Regards,
Karthick

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

--
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.