Adding indces to alies and routing

A month ago I asked a question about sharding and routuing and so on. You
can find it
here. https://github.com/elasticsearch/elasticsearch/issues/2443 I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--

Not sure I understand your plan. If all your indices have only one shard,
how are you going to use routing with the aliases?

On Thursday, December 20, 2012 2:02:57 PM UTC-5, Wojons Tech wrote:

A month ago I asked a question about sharding and routuing and so on. You
can find it here.
Request: Add empty shard to existing Index · Issue #2443 · elastic/elasticsearch · GitHub I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--

Good point, I would start with 1 shard per day but as i get more traffic
then 1 shard can handle i will then make another shard. and so on. These
will have routes at some point i could have 20 shards I dont know where it
will go but there will be routing what i am trying to undersand is if I use
alies and route, does it route per index or does it route per alies index?

On Thursday, December 20, 2012 1:48:40 PM UTC-8, Igor Motov wrote:

Not sure I understand your plan. If all your indices have only one shard,
how are you going to use routing with the aliases?

On Thursday, December 20, 2012 2:02:57 PM UTC-5, Wojons Tech wrote:

A month ago I asked a question about sharding and routuing and so on. You
can find it here.
Request: Add empty shard to existing Index · Issue #2443 · elastic/elasticsearch · GitHub I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--

When you are indexing using an alias, this alias has to resolve into a
single index, so it doesn't matter.

On Thursday, December 20, 2012 5:43:46 PM UTC-5, Wojons Tech wrote:

Good point, I would start with 1 shard per day but as i get more traffic
then 1 shard can handle i will then make another shard. and so on. These
will have routes at some point i could have 20 shards I dont know where it
will go but there will be routing what i am trying to undersand is if I use
alies and route, does it route per index or does it route per alies index?

On Thursday, December 20, 2012 1:48:40 PM UTC-8, Igor Motov wrote:

Not sure I understand your plan. If all your indices have only one shard,
how are you going to use routing with the aliases?

On Thursday, December 20, 2012 2:02:57 PM UTC-5, Wojons Tech wrote:

A month ago I asked a question about sharding and routuing and so on.
You can find it here.
Request: Add empty shard to existing Index · Issue #2443 · elastic/elasticsearch · GitHub I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--

Well when i am adding new values it will be to the index that is correct
but most of my data is read only data, so when i am searching across an
alies with multipal indeecs with different shard counts will my routes
still work?

On Thursday, December 20, 2012 3:07:08 PM UTC-8, Igor Motov wrote:

When you are indexing using an alias, this alias has to resolve into a
single index, so it doesn't matter.

On Thursday, December 20, 2012 5:43:46 PM UTC-5, Wojons Tech wrote:

Good point, I would start with 1 shard per day but as i get more traffic
then 1 shard can handle i will then make another shard. and so on. These
will have routes at some point i could have 20 shards I dont know where it
will go but there will be routing what i am trying to undersand is if I use
alies and route, does it route per index or does it route per alies index?

On Thursday, December 20, 2012 1:48:40 PM UTC-8, Igor Motov wrote:

Not sure I understand your plan. If all your indices have only one
shard, how are you going to use routing with the aliases?

On Thursday, December 20, 2012 2:02:57 PM UTC-5, Wojons Tech wrote:

A month ago I asked a question about sharding and routuing and so on.
You can find it here.
Request: Add empty shard to existing Index · Issue #2443 · elastic/elasticsearch · GitHub I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--

Yes, it should work. If you index a records with a certain routing value,
you can expect this record to show up in the search results if search is
using the same routing value even if you search against multiple indices.

Igor

On Thursday, December 20, 2012 6:15:04 PM UTC-5, Wojons Tech wrote:

Well when i am adding new values it will be to the index that is correct
but most of my data is read only data, so when i am searching across an
alies with multipal indeecs with different shard counts will my routes
still work?

On Thursday, December 20, 2012 3:07:08 PM UTC-8, Igor Motov wrote:

When you are indexing using an alias, this alias has to resolve into a
single index, so it doesn't matter.

On Thursday, December 20, 2012 5:43:46 PM UTC-5, Wojons Tech wrote:

Good point, I would start with 1 shard per day but as i get more traffic
then 1 shard can handle i will then make another shard. and so on. These
will have routes at some point i could have 20 shards I dont know where it
will go but there will be routing what i am trying to undersand is if I use
alies and route, does it route per index or does it route per alies index?

On Thursday, December 20, 2012 1:48:40 PM UTC-8, Igor Motov wrote:

Not sure I understand your plan. If all your indices have only one
shard, how are you going to use routing with the aliases?

On Thursday, December 20, 2012 2:02:57 PM UTC-5, Wojons Tech wrote:

A month ago I asked a question about sharding and routuing and so on.
You can find it here.
Request: Add empty shard to existing Index · Issue #2443 · elastic/elasticsearch · GitHub I am
woundering if i create indexes with a single shard, and then add those
indexes to an alies and then i query and insert into the alies, and I use
routing, will my routing get messed up everytime i add a new index to the
route?

--