O'Reilly logo

Mastering Elasticsearch 5.x - Third Edition by Bharvi Dixit

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The store type

Elasticsearch exposes five store types that we can use. By default, Elasticsearch picks the best implementation based on the operating system environment. But you can override the default behavior in following ways:

  • The first way, is to set for all the indices, by adding the index.store.type property inside the elasticsearch.yml file. For example, if you want to set the niofs store type to all the indices you can add following line inside elasticsearch.yml file:
index.store.type: niofs 
  • The second way is to set per index at the index creation time in the following way:
curl -XPUT "http://localhost:9200/index_name" -d' { 
 "settings": { 
 "index.store.type": "niofs" 
 } 
}'

Let's see what these store types provide and how we can leverage ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required