ElasticSearch Costume River


(vannya) #1

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,


(Shay Banon) #2

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,


(system) #3