Modifying elasticsearch index settings


Warning: count(): Parameter must be an array or an object that implements Countable in /home/fbsqlcom/public_html/youdidwhatwithtsql.com/wp-content/plugins/wp-codebox/main.php on line 31

To view the settings of an index run the following at the command-line…

curl -XGET http://hostname:9200/indexname/_settings

From here you can indeify the setting you need and modify it as you wish. This example sets the number of replicas to zero.

curl -XPUT http://hostname:9200/indexname/_settings -d '{ "index": {"number_of_replicas":"0"}}'

For further details see the manual.

Leave a Reply