Try to understand getIndexCurrent() function in Elasticsearch


(Hao Yan) #1

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--). 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) i think it means the number of docs currently being indexed?

Thanks,
Hao


(Simon Willnauer) #2

I added some javadocs here: https://github.com/elastic/elasticsearch/pull/14632


(Hao Yan) #4

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


(Hao Yan) #5

Sorry my bad, found it.


(system) #6