I'm trying to figure out if it is possible to create a new river with a
specified last_seq value. Alternatively, if it's possible to modify the
last_seq value of an existing river and get it to start processing from
that last_seq.
Our use case is that we have multiple indices that have the same documents
but slightly different schemas. Each index has its own river pointed at our
main BigCouch database. We control which index gets used by our application
using an index alias.
We always want our river named "live_river" to point at whatever index our
alias points at. We accomplish this by just deleting our "live_river" and
creating a new "live_river" whenever we adjust our index alias to put a new
index into production use.
However, recreating that river means it will re-index all 4.8 million (and
growing) documents needlessly. This no-op overhead is what I'm trying to
avoid.
I've tried manually updating an existing river with
localhost:9200/_river/live_river/_seq -d '{"couchdb":{"last_seq":"100"}}'
and it updates that doc, but it has no effect on the behavior of the
live_river.
Any ideas?
-Brian
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.