↓ Skip to main content
Notes

Index Modules

·1 min
Table of Contents

Index modules are a complex subject; they are defined per index and control every aspect of an index.

There are two types of settings for an index

  1. Static: Can usually be defined at the creation time or when the index is closed.
    • index can be closed by invoking the _close api.
    • E.g. index.number_of_shards, index.shard.check_on_startup etc.
  2. Dynamic: Can be changed on the live index using index settings api.
    • E.g. index.number_of_replicas, index.refresh_interval etc.

More details available here.

Example
#

GET samarthya-dummy/_settings

Output looks like

{
“samarthya-dummy” : {
“settings” : {
“index” : {
“creation_date” : “1586159619660”,
“number_of_shards” : “1”,
“number_of_replicas” : “1”,
“uuid” : “aGtxZ-FSRNKUgObjpQKhtA”,
“version” : {
“created” : “7060299”
},
“provided_name” : “samarthya-dummy”
}
}
}
}

Author
Samarthya
Engineer, learner, tinkerer. This is my trophy shelf of everyday work and leisure.

Related

Pipeline: _ingest API

Pipelines is a smooth way of processing some incoming data. In this blog, I will walk through some of the items I have tried my hands on. Pipeline # A pipeline is a definition of a series of processors that are to be executed in the same order as they are declared.

Snapshot & Restore

If you have a production grade elastic cluster it is always recommended to do a regular backup as a standard practice. Snapshot is a backup of information, that can be be used to restore the last known good state of the system

Package String

Just like Java or C++ there are standard libraries (packages) available with golang. The one that you might end up using the most often is strings. For this blog, I was writing another practice exercise that is meant to count number of words in an input string.