# Disappearing some documents from ES after editing any document in couchdb

**URL:** <https://discuss.elastic.co/t/disappearing-some-documents-from-es-after-editing-any-document-in-couchdb/4530>\
**Category:** Elasticsearch\
**Created:** [June 2, 2011, 8:34am UTC](https://discuss.elastic.co/t/disappearing-some-documents-from-es-after-editing-any-document-in-couchdb/4530 "2011-06-02T08:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marvin/32/1688_2.png) [@marvin](https://discuss.elastic.co/u/marvin)\
**Post date:** [June 2, 2011, 8:34am UTC](https://discuss.elastic.co/t/disappearing-some-documents-from-es-after-editing-any-document-in-couchdb/4530/1 "2011-06-02T08:34:50Z")

</div>

Hi.  
I have couchdb river. There are over 300000 docs in database. After edit any document in db number of documents in ES decreases unpredictably.  
Doing **flush** for index helps. But i'm wondering, would it be a problem to call **flush** after each update in couchdb.  
Maybe there are some other ways to solve my problem?

---

<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:04am UTC](https://discuss.elastic.co/t/disappearing-some-documents-from-es-after-editing-any-document-in-couchdb/4530/2 "2017-07-06T04:04:53Z")

</div>


