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
| Property | Returns | Description |
|---|---|---|
| current | int | The count of documents processed so far in the reindex run, including this one. |
| name | String | Name of the document that was just indexed when this progress event was raised. |
| percentComplete | int | Percentage of the reindex run completed so far, calculated as current divided by total documents. |
| total | int | Total 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.