Reports progress while a JSON database is being reindexed into Elasticsearch, delivered to the callback passed to reindex or updateAnalyzers after each document is processed. Carries the name of the document just indexed together with the running count and the total number of documents in the reindex run, so a caller can track and display progress.


Properties

PropertyReturnsDescription
currentintThe count of documents processed so far in the reindex run, including this one.
nameStringName of the document that was just indexed when this progress event was raised.
percentCompleteintPercentage of the reindex run completed so far, calculated as current divided by total documents.
totalintTotal number of documents being reindexed in the run this progress event belongs to.

Methods

getName()

Returns: String

Name of the document that was just indexed when this progress event was raised.

getCurrent()

Returns: int

The count of documents processed so far in the reindex run, including this one.

getTotal()

Returns: int

Total number of documents being reindexed in the run this progress event belongs to.

getPercentComplete()

Returns: int

Percentage of the reindex run completed so far, calculated as current divided by total documents.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.