Managing index settings
Index settings are more important because they allow you to control several important Elasticsearch functionalities, such as sharding or replication, caching, term management, routing, and analysis.
Getting ready
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
To execute these commands, HTTP clients can be used, such as curl (https://curl.haxx.se/), postman (https://www.getpostman.com/), or others. I suggest using the Kibana console as it provides code completion and better character escaping for Elasticsearch.
To execute the following commands correctly, use the index we created in the Creating an index recipe.
How to do it...
For managing the index settings, we will perform the following steps:
- To retrieve the settings of your current index, use the following URL format:
http://<server>/<index_name>/_settings
- We are reading information using the REST...