Interface IndexConsistencyChecker

All Known Implementing Classes:
LuceneConsistencyChecker, OpenSearchConsistencyChecker

public interface IndexConsistencyChecker
Extracted from IndexLifecycleManager to allow disabling index consistency checks for OpenSearch.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    boolean
     
  • Method Details

    • isIndexAvailable

      @Deprecated(since="10.7", forRemoval=true) boolean isIndexAvailable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Whether this index is available.

      The index is not available if the index is being rebuilt or recovered. In a clustered environment this reflects only the state on the local node.

      Returns:
      Whether this index is available.
    • isIndexConsistent

      boolean isIndexConsistent()
      Returns:
      the result of a simple consistency check that compares the index state to the current number of issues. A background re-index should not be attempted when this returns false. Note that false is also returned if the index is not available .