Changing the default number of shard/replicas?

Is there a way I can change the default number of shards and replicas
so that I don't have to include that information each time I create an
index?

For instance if I put the following in elasticsearch.yaml will it
work?

index:
number_of_shards: 10
number_of_replicas: 2

Yep. Index level settings set on the settings file will be used. They
basically provide the "defaults" unless explicit settings to override them
are set on the index creation level.

-shay.banon

On Sat, Jul 17, 2010 at 3:31 AM, David Jensen djensen47@gmail.com wrote:

Is there a way I can change the default number of shards and replicas
so that I don't have to include that information each time I create an
index?

For instance if I put the following in elasticsearch.yaml will it
work?

index:
number_of_shards: 10
number_of_replicas: 2