# ElasticSearch Costume River

**URL:** <https://discuss.elastic.co/t/elasticsearch-costume-river/4325>\
**Category:** Elasticsearch\
**Created:** [May 2, 2011, 1:55pm UTC](https://discuss.elastic.co/t/elasticsearch-costume-river/4325 "2011-05-02T13:55:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vannya](https://avatars.discourse-cdn.com/v4/letter/v/e495f1/32.png) [@vannya](https://discuss.elastic.co/u/vannya)\
**Post date:** [May 2, 2011, 1:55pm UTC](https://discuss.elastic.co/t/elasticsearch-costume-river/4325/1 "2011-05-02T13:55:58Z")

</div>

Hi all,

I'm using elasticsearch 0.16.0 and based on CouchDb River example I  
built a custom river.  
My river is working based on \_meta information (meaning, it starts  
when I register the river against es passing \_meta info to my river  
type) and is working fine (migrating between nodes, starting,  
collecting and indexing registers).

After reading all documentation available, which refers "In order to  
delete a river, a simple delete of the mapping type (river name) can  
be done.", I'm asking help to find out how to stop the river without  
removing the mapping type, since I'm saving some configuration my  
custom river needs to restart in that mapping type.

Can anyone help?

Thanks,

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 3, 2011, 4:15pm UTC](https://discuss.elastic.co/t/elasticsearch-costume-river/4325/2 "2011-05-03T16:15:30Z")

</div>

There is no way to stop a river except for deleting it. We can introduce something like a stop state that rivers can poll to see if they should be stopped or not. You can implement it on your river.  
On Monday, May 2, 2011 at 4:55 PM, VÃ¢nia Santos wrote:

> Hi all,
> 
> I'm using elasticsearch 0.16.0 and based on CouchDb River example I  
> built a custom river.  
> My river is working based on \_meta information (meaning, it starts  
> when I register the river against es passing \_meta info to my river  
> type) and is working fine (migrating between nodes, starting,  
> collecting and indexing registers).
> 
> After reading all documentation available, which refers "In order to  
> delete a river, a simple delete of the mapping type (river name) can  
> be done.", I'm asking help to find out how to stop the river without  
> removing the mapping type, since I'm saving some configuration my  
> custom river needs to restart in that mapping type.
> 
> Can anyone help?
> 
> Thanks,

---

<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:** [July 6, 2017, 4:07am UTC](https://discuss.elastic.co/t/elasticsearch-costume-river/4325/3 "2017-07-06T04:07:06Z")

</div>


