# Get number of pending document writes?

**URL:** <https://discuss.elastic.co/t/get-number-of-pending-document-writes/23564>\
**Category:** Elasticsearch\
**Created:** [May 6, 2015, 2:32am UTC](https://discuss.elastic.co/t/get-number-of-pending-document-writes/23564 "2015-05-06T02:32:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Liman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david_liman/32/716_2.png) [@David\_Liman](https://discuss.elastic.co/u/David_Liman)\
**Post date:** [May 6, 2015, 2:32am UTC](https://discuss.elastic.co/t/get-number-of-pending-document-writes/23564/1 "2015-05-06T02:32:32Z")

</div>

[http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cat-pending-tasks.html](http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cat-pending-tasks.html)  
[http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-pending.html](http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-pending.html)

The documentation says a task (or a cluster level task) are things like  
creating index, updating mapping, shard state.  
Does this apply to writing documents to the index?

In our test code, it looks like document writes (indexing) is not happening  
fast enough for search immediately.  
Quick solution currently is by calling timer:sleep(seconds). I wonder if  
there is a better way to get feedback from elastic about the current write  
load?

Thanks,  
David

## -- Please update your bookmarks! We moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e81d2136-8d21-4b24-b580-05348ea96d5b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e81d2136-8d21-4b24-b580-05348ea96d5b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2015, 5:01am UTC](https://discuss.elastic.co/t/get-number-of-pending-document-writes/23564/2 "2015-05-06T05:01:33Z")

</div>

In tests, you need to refresh the index before searching.  
Elasticsearch is a near real time search engine.

See [Refresh an index | Elasticsearch API documentation](http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html)

Note that we moved the mailing list to [https://discuss.elastic.co/](https://discuss.elastic.co/)

David

> Le 6 mai 2015 à 04:32, David Liman [limanoit@gmail.com](mailto:limanoit@gmail.com) a écrit :
> 
> [cat pending tasks | Elasticsearch Guide [1.5] | Elastic](http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cat-pending-tasks.html)  
> [Pending cluster tasks | Elasticsearch Guide [1.5] | Elastic](http://www.elastic.co/guide/en/elasticsearch/reference/1.5/cluster-pending.html)
> 
> The documentation says a task (or a cluster level task) are things like creating index, updating mapping, shard state.  
> Does this apply to writing documents to the index?
> 
> In our test code, it looks like document writes (indexing) is not happening fast enough for search immediately.  
> Quick solution currently is by calling timer:sleep(seconds). I wonder if there is a better way to get feedback from elastic about the current write load?
> 
> ## Thanks, David
> 
> ## Please update your bookmarks! We moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)
> 
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e81d2136-8d21-4b24-b580-05348ea96d5b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e81d2136-8d21-4b24-b580-05348ea96d5b%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

## -- Please update your bookmarks! We moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7FCC8F92-5DC6-4A7B-8698-F3148135FCEE%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/7FCC8F92-5DC6-4A7B-8698-F3148135FCEE%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:15am UTC](https://discuss.elastic.co/t/get-number-of-pending-document-writes/23564/3 "2017-07-06T00:15:34Z")

</div>

Closed on July 6, 2017, 12:15am UTC


