# Try to understand getIndexCurrent() function in Elasticsearch

**URL:** <https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203>\
**Category:** Elasticsearch\
**Created:** [November 9, 2015, 9:27pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203 "2015-11-09T21:27:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cloud\_cal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cloud_cal/32/5818_2.png) [@Cloud\_cal](https://discuss.elastic.co/u/Cloud_cal)\
**Post date:** [November 9, 2015, 9:27pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203/1 "2015-11-09T21:27:32Z")

</div>

Hi,

I'm new to Elasticsearch, and am trying to understand what on earth does getIndexCurrent() mean([http://xbib.org/elasticsearch/1.5.1/apidocs/org/elasticsearch/index/indexing/IndexingStats.Stats.html#getIndexCurrent--](http://xbib.org/elasticsearch/1.5.1/apidocs/org/elasticsearch/index/indexing/IndexingStats.Stats.html#getIndexCurrent--)). By its literal meaning, i know it gets you the current index, but i couldn't find any detailed explanation of this function, and based on ([https://www.elastic.co/guide/en/elasticsearch/guide/current/\_monitoring\_individual\_nodes.html?q=monitoring](https://www.elastic.co/guide/en/elasticsearch/guide/current/_monitoring_individual_nodes.html?q=monitoring)) i think it means the number of docs currently being indexed?

Thanks,  
Hao

---

<div class="post-metadata">

**Author:** ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)\
**Post date:** [November 9, 2015, 9:52pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203/2 "2015-11-09T21:52:04Z")

</div>

> [@Cloud\_cal](#):
>
> IndexingStats

I added some javadocs here: [Add javadocs to IndexingStats.Stats by s1monw · Pull Request #14632 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/pull/14632)

---

<div class="post-metadata">

**Author:** ![Cloud\_cal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cloud_cal/32/5818_2.png) [@Cloud\_cal](https://discuss.elastic.co/u/Cloud_cal)\
**Post date:** [November 9, 2015, 11:10pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203/4 "2015-11-09T23:10:28Z")

</div>

Hi Simon,

I still can't find a comment for getIndexCurrent() from the link you listed(there are some for other functions), does this function return the number of docs currently being indexed?

Thanks,  
Hao

---

<div class="post-metadata">

**Author:** ![Cloud\_cal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cloud_cal/32/5818_2.png) [@Cloud\_cal](https://discuss.elastic.co/u/Cloud_cal)\
**Post date:** [November 9, 2015, 11:19pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203/5 "2015-11-09T23:19:14Z")

</div>

Sorry my bad, found it.

---

<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 5, 2017, 11:39pm UTC](https://discuss.elastic.co/t/try-to-understand-getindexcurrent-function-in-elasticsearch/34203/6 "2017-07-05T23:39:37Z")

</div>


