forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: zhengxiu <zhengxiu@huawei.com> Co-committed-by: zhengxiu <zhengxiu@huawei.com>
19 lines
2.7 KiB
HTML
19 lines
2.7 KiB
HTML
<a name="EN-US_TOPIC_0000001960397653"></a><a name="EN-US_TOPIC_0000001960397653"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Clear Elasticsearch Indexes in CSS?</h1>
|
|
<div id="body1587038134114"><div class="caution" id="EN-US_TOPIC_0000001960397653__note19174336144110"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001960397653__p151451826113317">Before deleting index data, carefully evaluate any potential impact on services.</p>
|
|
</div></div>
|
|
<ul id="EN-US_TOPIC_0000001960397653__ul10581145211172"><li id="EN-US_TOPIC_0000001960397653__li12581145211718">Have indexes automatically cleared on a regular basis.<p id="EN-US_TOPIC_0000001960397653__p850418437148"><a name="EN-US_TOPIC_0000001960397653__li12581145211718"></a><a name="li12581145211718"></a>You can create a scheduled task to execute an index deletion request periodically. CSS supports Open Distro Index State Management. For details about how to clear obsolete indexes periodically, see <a href="css_01_0022.html">Decoupling Index Storage and Compute in an Elasticsearch Cluster Through Index Lifecycle Management</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001960397653__p19914172125018">For details about Open Distro Index State Management, see https://opendistro.github.io/for-elasticsearch-docs/docs/im/ism/.</p>
|
|
</li><li id="EN-US_TOPIC_0000001960397653__li1783072461815">Manually clear indexes.<ul id="EN-US_TOPIC_0000001960397653__ul1571319181916"><li id="EN-US_TOPIC_0000001960397653__li912598111914">Log in to Kibana, go to the <strong id="EN-US_TOPIC_0000001960397653__b177491113101714">Dev Tools</strong> page, and run the following command to delete a specified index:<pre class="screen" id="EN-US_TOPIC_0000001960397653__screen11664161010379">DELETE /{index_name}</pre>
|
|
</li><li id="EN-US_TOPIC_0000001960397653__li141365815191">Log in to Cerebro, search for the target index name, click the index name, click <strong id="EN-US_TOPIC_0000001960397653__b121122414019"><span class="parmvalue" id="EN-US_TOPIC_0000001960397653__parmvalue11335151762319"><b>delete index</b></span></strong>, and click <span class="parmvalue" id="EN-US_TOPIC_0000001960397653__parmvalue135401220122319"><b>Confirm</b></span> in the displayed dialog box.<div class="fignone" id="EN-US_TOPIC_0000001960397653__fig3463184310248"><span class="figcap"><b>Figure 1 </b>Deleting an index from Cerebro</span><br><span><img id="EN-US_TOPIC_0000001960397653__image13100173912244" src="figure/en-us_image_0000001960517893.png"></span></div>
|
|
</li></ul>
|
|
</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0055.html">Using CSS Cluster Search Engines</a></div>
|
|
</div>
|
|
</div>
|
|
|