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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.