Newbie question re:updating indexes with a river

How do rivers work in terms of CRUD..?

I.e are they additive only or can they be used to edit and delete..?

e.g can a stream of messages from rabbitmq be mapped against the current content of an index or does it just overwrite/put ?

Thanks,

J

It depends on the river.
CouchDb river support delete.

For twitter, it doesn't make sense.

I don't know about rabbitmq.

HTH
David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 17 juin 2012 à 12:19, SamTse kingjerome@gmail.com a écrit :

How do rivers work in terms of CRUD..?

I.e are they additive only or can they be used to edit and delete..?

e.g can a stream of messages from rabbitmq be mapped against the current content of an index or does it just overwrite/put ?

Thanks,

J

thanks. So (with couch db) if you wanted index updates you would delete and add..?

(can you point me at somewhere that will illustrate how indexed items to delete are selected?)

thx,

j

The _changes Couchdb API provide this information.
So when ES get a DELETE on ID X, ES delete the document.

You may have a look at the CouchDb documentation.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 18 juin 2012 à 02:12, SamTse kingjerome@gmail.com a écrit :

thanks. So (with couch db) if you wanted index updates you would delete and add..?

(can you point me at somewhere that will illustrate how indexed items to delete are selected?)

thx,

j

thx :slight_smile: