# Cannot see data inserted into elasticsearch via mongo in real-time

**URL:** https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941
**Category:** Elasticsearch
**Created:** [June 1, 2012, 3:29pm UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941 "2012-06-01T15:29:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![coys](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@coys](https://discuss.elastic.co/u/coys)
#### Post date: [June 1, 2012, 3:29pm UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941/1 "2012-06-01T15:29:57Z")

</div>

Hi, I'm using rwilly's river plugin for mongodb which works on oplogs.  
I'm using elasticsearch for performing full text-search. I'm having an  
issue where only the data I insert into mongodb for the first half an  
hour or so, or first few inserts can be seen real-time on elastic-  
search. Subsequent data can only be seen when I restart the elastic-  
search process, though the data is present in mongo. Can someone  
please tell me why this could be happening? Thanks!

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [June 3, 2012, 10:10am UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941/2 "2012-06-03T10:10:55Z")

</div>

I am not familiar with the mongodb river, but from what I see, its in very  
early alpha stage, so it might make sense to do the integration yourself.

On Fri, Jun 1, 2012 at 5:29 PM, coys [gautam719@gmail.com](mailto:gautam719@gmail.com) wrote:

> Hi, I'm using rwilly's river plugin for mongodb which works on oplogs.  
> I'm using elasticsearch for performing full text-search. I'm having an  
> issue where only the data I insert into mongodb for the first half an  
> hour or so, or first few inserts can be seen real-time on elastic-  
> search. Subsequent data can only be seen when I restart the elastic-  
> search process, though the data is present in mongo. Can someone  
> please tell me why this could be happening? Thanks!

---

<div class="post-metadata">

### Author: ![xavier\_martin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavier_martin/32/2850_2.png) [@xavier\_martin](https://discuss.elastic.co/u/xavier_martin)
#### Post date: [June 14, 2012, 6:14am UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941/3 "2012-06-14T06:14:44Z")

</div>

Hi,

I've made a patch that appear to fix this issue.  
pull request

> <https://github.com/richardwilly98/elasticsearch-river-mongodb/pull/20>

---

<div class="post-metadata">

### Author: ![coys](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@coys](https://discuss.elastic.co/u/coys)
#### Post date: [June 25, 2012, 4:36pm UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941/4 "2012-06-25T16:36:30Z")

</div>

Sorry, I only read the posts now. Thanks a lot!!

On Jun 14, 12:14 am, xavier martin [xav.mar...@gmail.com](mailto:xav.mar...@gmail.com) wrote:

> Hi,
> 
> I've made a patch that appear to fix this issue.  
> pull requesthttps://github.com/richardwilly98/elasticsearch-river-mongodb/pull/20

---

<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, 3:22am UTC](https://discuss.elastic.co/t/cannot-see-data-inserted-into-elasticsearch-via-mongo-in-real-time/7941/5 "2017-07-06T03:22:37Z")

</div>


