Index specific shard and replica settting


(Weiwei Wang) #1

currently i use elasticsearch.json to set the global shard and replica
setting.

I have two indices and they have different total index size, e.g. 1T
vs 5T, so i need to set them with different shard and replica setting,
where should i put my configuration instead of sending a url post when
create the index


(Karussell) #2

It is not possible to change the shard count after index creation. So
you'll need to set it when creating the index.

For the other options see:

http://www.elasticsearch.org/guide/reference/api/admin-indices-update-settings.html

On Jun 20, 8:43 am, Weiwei Wang ww.wang...@gmail.com wrote:

currently i use elasticsearch.json to set the global shard and replica
setting.

I have two indices and they have different total index size, e.g. 1T
vs 5T, so i need to set them with different shard and replica setting,
where should i put my configuration instead of sending a url post when
create the index


(system) #3