{"id":593,"date":"2020-04-23T15:53:25","date_gmt":"2020-04-23T15:53:25","guid":{"rendered":"https:\/\/blog.samarthya.me\/wps\/?p=593"},"modified":"2020-04-23T15:53:25","modified_gmt":"2020-04-23T15:53:25","slug":"index-modules","status":"publish","type":"post","link":"https:\/\/blog.samarthya.me\/wps\/2020\/04\/23\/index-modules\/","title":{"rendered":"Index Modules"},"content":{"rendered":"<p>Index modules are a complex subject; they are defined per index and control every aspect of an index.<\/p>\n<p>There are two types of settings for an index<\/p>\n<ol>\n<li>Static: Can usually be defined at the creation time <strong>or<\/strong> when the index is closed.\n<ul>\n<li>index can be closed by invoking the _close api.<\/li>\n<li>E.g. index.number_of_shards, index.shard.check_on_startup etc.<\/li>\n<\/ul>\n<\/li>\n<li>Dynamic: Can be changed on the live index using <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/master\/indices-update-settings.html\">index settings<\/a> api.\n<ul>\n<li>E.g. index.number_of_replicas, index.refresh_interval etc.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>More details available <a href=\"https:\/\/www.elastic.co\/guide\/en\/elasticsearch\/reference\/master\/index-modules.html#dynamic-index-settings\">here<\/a>.<\/p>\n<h2>Example<\/h2>\n<blockquote><p>GET <code>saurabh-dummy\/_settings<\/code><\/p><\/blockquote>\n<p>Output looks like<\/p>\n<blockquote><p>{<br \/>\n&#8220;saurabh-dummy&#8221; : {<br \/>\n&#8220;settings&#8221; : {<br \/>\n&#8220;index&#8221; : {<br \/>\n&#8220;creation_date&#8221; : &#8220;1586159619660&#8221;,<br \/>\n&#8220;number_of_shards&#8221; : &#8220;1&#8221;,<br \/>\n&#8220;number_of_replicas&#8221; : &#8220;1&#8221;,<br \/>\n&#8220;uuid&#8221; : &#8220;aGtxZ-FSRNKUgObjpQKhtA&#8221;,<br \/>\n&#8220;version&#8221; : {<br \/>\n&#8220;created&#8221; : &#8220;7060299&#8221;<br \/>\n},<br \/>\n&#8220;provided_name&#8221; : &#8220;saurabh-dummy&#8221;<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\n}<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 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. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-593","post","type-post","status-publish","format-image","hentry","category-technical","post_format-post-format-image"],"_links":{"self":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/comments?post=593"}],"version-history":[{"count":0,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/posts\/593\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/media?parent=593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/categories?post=593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.samarthya.me\/wps\/wp-json\/wp\/v2\/tags?post=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}