Compares the number of items in a primary data store against the number indexed into Elasticsearch for a single index, so a discrepancy between the two can be detected. Produced by an AppIndexer's calculateStatistics and reported by SearchManager.findDiscrepancies.


Properties

PropertyReturnsDescription
indexNameStringThe name of the Elasticsearch index these statistics were calculated for.
indexTypeStringThe document type within the Elasticsearch index these statistics were calculated for.
numEsItemsLongThe number of items found in the Elasticsearch index, or null if it could not be determined.
numPrimaryItemslongThe number of items found in the primary data store, ie the source of truth being indexed.

Methods

getIndexName()

Returns: String

The name of the Elasticsearch index these statistics were calculated for.

getIndexType()

Returns: String

The document type within the Elasticsearch index these statistics were calculated for.

getNumPrimaryItems()

Returns: long

The number of items found in the primary data store, ie the source of truth being indexed.

getNumEsItems()

Returns: Long

The number of items found in the Elasticsearch index, or null if it could not be determined.

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