Setting all indexes to have zero replicas with Elasticsearch

April 05, 2017

To configure all indexes (including existing ones) to have zero replicas (useful if running on only one server, e.g. in development), execute this (syntax assumes you’re using Sense):

PUT /_settings


“index” : {

“numberofreplicas” : 0



Then check it’s worked by running this:

GET /_cat/indices?v

I'm a software developer and this is my technology and coding blog.