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 ...

Get Mastering Elasticsearch 5.x - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.