public interface LuceneIndexMBean
Modifier and Type | Method and Description |
---|---|
String[] |
checkAndReportConsistencyOfAllIndexes(boolean fullCheck) |
String |
checkConsistency(String indexPath,
boolean fullCheck) |
boolean |
checkConsistencyOfAllIndexes(boolean fullCheck) |
String |
diffStoredIndexDefinition(String indexPath) |
TabularData |
getBadIndexStats() |
TabularData |
getBadPersistedIndexStats() |
String[] |
getFieldInfo(String indexPath) |
String[] |
getFieldTermsInfo(String indexPath,
String field,
int max) |
String[] |
getIndexedPaths(String indexPath,
int maxLevel,
int maxPathCount) |
TabularData |
getIndexStats() |
String |
getStoredIndexDefinition(String indexPath) |
boolean |
isFailing() |
static final String TYPE
TabularData getIndexStats() throws IOException
IOException
TabularData getBadIndexStats()
TabularData getBadPersistedIndexStats()
boolean isFailing()
@Description(value="Determines the set of index paths upto given maxLevel. This can be used to determine the value for[includedPaths]. For this to work you should have [evaluatePathRestrictions] set to true in your index definition") String[] getIndexedPaths(@Description(value="Index path for which stats are to be determined") @Name(value="indexPath") String indexPath, @Name(value="maxLevel") @Description(value="Maximum depth to examine. E.g. 5. Stats calculation would break out after this limit") int maxLevel, @Description(value="Maximum number of unique paths to examine. E.g. 100. Stats calculation would break out after this limit") @Name(value="maxPathCount") int maxPathCount) throws IOException
IOException
@Description(value="Retrieves the fields, and number of documents for each field, for an index. This allows to investigate what is stored in the index.") String[] getFieldInfo(@Name(value="indexPath") @Description(value="The index path (empty for all indexes)") String indexPath) throws IOException
IOException
@Description(value="Retrieves the terms, and number of documents for each term, for an index. This allows to closely investigate what is stored in the index.") String[] getFieldTermsInfo(@Name(value="indexPath") @Description(value="The index path (empty for all indexes)") String indexPath, @Name(value="field") @Description(value="The field name (empty for all fields)") String field, @Name(value="max") @Description(value="The maximum number of entries to return (e.g. 100)") int max) throws IOException
IOException
@Description(value="Returns the stored index definition for index at given path in string form") String getStoredIndexDefinition(@Name(value="indexPath") String indexPath)
@Description(value="Returns the diff of index definition for index at given path from the stored index definition in string form") String diffStoredIndexDefinition(@Name(value="indexPath") String indexPath)
@Description(value="Performs consistency check on given index") String checkConsistency(@Name(value="indexPath") String indexPath, @Name(value="fullCheck") @Description(value="If set to true a full check would be performed which can be slow as it reads all index files. If set to false a quick check is performed to check if all blobs referred in index files are present in BlobStore") boolean fullCheck) throws IOException
IOException
@Description(value="Performs consistency check for all Lucene indexes and reports in simple format") String[] checkAndReportConsistencyOfAllIndexes(@Name(value="fullCheck") @Description(value="If set to true a full check would be performed which can be slow as it reads all index files. If set to false a quick check is performed to check if all blobs referred in index files are present in BlobStore") boolean fullCheck) throws IOException
IOException
@Description(value="Performs consistency check for all Lucene indexes and reports true if all indexes are found to be valid. False if any one of them was not found to be valid") boolean checkConsistencyOfAllIndexes(@Name(value="fullCheck") @Description(value="If set to true a full check would be performed which can be slow as it reads all index files. If set to false a quick check is performed to check if all blobs referred in index files are present in BlobStore") boolean fullCheck) throws IOException
IOException
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.