# Force adding of Dangling Indices via a command

**URL:** https://discuss.elastic.co/t/force-adding-of-dangling-indices-via-a-command/182554
**Category:** Elasticsearch
**Created:** [May 24, 2019, 4:43am UTC](https://discuss.elastic.co/t/force-adding-of-dangling-indices-via-a-command/182554 "2019-05-24T04:43:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremy\_Chan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremy_chan/32/46754_2.png) [@Jeremy\_Chan](https://discuss.elastic.co/u/Jeremy_Chan)
#### Post date: [May 24, 2019, 4:43am UTC](https://discuss.elastic.co/t/force-adding-of-dangling-indices-via-a-command/182554/1 "2019-05-24T04:43:47Z")

</div>

Hi,

I am currently using Elasticsearch 6.0 and I want to build a plugin to force the adding of the dangling indices through a rest api instead of adding a new node or waiting for the cluster's state to change.  
As there is already a DanglingIndicesState class which already helps to process the dangling indices, I would like to use it via the plugin. Is there a way to call the internal api/service for this?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [June 21, 2019, 4:43am UTC](https://discuss.elastic.co/t/force-adding-of-dangling-indices-via-a-command/182554/2 "2019-06-21T04:43:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
