CouchDB river and flush index in ES

Hi,
I have couch db with ~500k docs and couchdb river with configuration from
example http://www.elasticsearch.org/guide/reference/river/couchdb.html.
After update document in couch the changes in ES come effect after some
period (5 - 15 seconds).
Using *flushhttp://www.elasticsearch.org/guide/reference/api/admin-indices-flush.html
, *after each update document in couch, helps to take changes in ES
immediatelly.
But it seems it's not good practice.
Maybe has another way to resolve my problem?

Thanks.

Flush has nothing to do with indexed document from couchdb. When searching
for documents indexed from couchdb, there two important time based aspects:

  1. How long does it take to get it from the _changes stream and index it.
  2. The refresh interval which controls when an indexed document will become
    visible, defaults to 1 second.

-shay.banon

On Sun, Jul 31, 2011 at 9:06 PM, Marvin mailvovana@gmail.com wrote:

Hi,
I have couch db with ~500k docs and couchdb river with configuration from
example Elasticsearch Platform — Find real-time answers at scale | Elastic.
After update document in couch the changes in ES come effect after some
period (5 - 15 seconds).
Using *flushhttp://www.elasticsearch.org/guide/reference/api/admin-indices-flush.html
, *after each update document in couch, helps to take changes in ES
immediatelly.
But it seems it's not good practice.
Maybe has another way to resolve my problem?

Thanks.