public interface LuceneIndexMBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
checkAndReportConsistencyOfAllIndexes(boolean fullCheck) |
java.lang.String |
checkConsistency(java.lang.String indexPath,
boolean fullCheck) |
boolean |
checkConsistencyOfAllIndexes(boolean fullCheck) |
java.lang.String |
diffStoredIndexDefinition(java.lang.String indexPath) |
javax.management.openmbean.TabularData |
getBadIndexStats() |
javax.management.openmbean.TabularData |
getBadPersistedIndexStats() |
java.lang.String |
getDocCount(java.lang.String indexPath) |
java.lang.String[] |
getFieldInfo(java.lang.String indexPath) |
java.lang.String[] |
getFieldTermInfo(java.lang.String indexPath,
java.lang.String field,
java.lang.String term) |
java.lang.String[] |
getFieldTermsInfo(java.lang.String indexPath,
java.lang.String field,
int max) |
java.lang.String |
getHybridIndexInfo(java.lang.String indexPath) |
java.lang.String[] |
getIndexedPaths(java.lang.String indexPath,
int maxLevel,
int maxPathCount) |
javax.management.openmbean.TabularData |
getIndexStats() |
java.lang.String |
getSize(java.lang.String indexPath) |
java.lang.String |
getStoredIndexDefinition(java.lang.String indexPath) |
boolean |
isFailing() |
java.lang.String |
performPropertyIndexCleanup() |
static final java.lang.String TYPE
javax.management.openmbean.TabularData getIndexStats() throws java.io.IOException
java.io.IOException
javax.management.openmbean.TabularData getBadIndexStats()
javax.management.openmbean.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") java.lang.String[] getIndexedPaths(@Description(value="Index path for which stats are to be determined") @Name(value="indexPath") java.lang.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 java.io.IOException
java.io.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.") java.lang.String[] getFieldInfo(@Name(value="indexPath") @Description(value="The index path (empty for all indexes)") java.lang.String indexPath) throws java.io.IOException
java.io.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.") java.lang.String[] getFieldTermsInfo(@Name(value="indexPath") @Description(value="The index path (empty for all indexes)") java.lang.String indexPath, @Name(value="field") @Description(value="The field name (empty for all fields)") java.lang.String field, @Name(value="max") @Description(value="The maximum number of entries to return (e.g. 100)") int max) throws java.io.IOException
java.io.IOException
@Description(value="Retrieves the number of documents for a specific term, for an index. This allows to closely investigate what is stored in the index.") java.lang.String[] getFieldTermInfo(@Name(value="indexPath") @Description(value="The index path (empty for all indexes)") java.lang.String indexPath, @Name(value="field") @Description(value="The field name (empty for all fields)") java.lang.String field, @Name(value="term") @Description(value="The term") java.lang.String term) throws java.io.IOException
java.io.IOException
@Description(value="Returns the stored index definition for index at given path in string form") java.lang.String getStoredIndexDefinition(@Name(value="indexPath") java.lang.String indexPath)
@Description(value="Returns the diff of index definition for index at given path from the stored index definition in string form") java.lang.String diffStoredIndexDefinition(@Name(value="indexPath") java.lang.String indexPath)
@Description(value="Performs consistency check on given index") java.lang.String checkConsistency(@Name(value="indexPath") java.lang.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 java.io.IOException
java.io.IOException
@Description(value="Performs consistency check for all Lucene indexes and reports in simple format") java.lang.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 java.io.IOException
java.io.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 java.io.IOException
java.io.IOException
@Description(value="Performs any possible cleanup of the hybrid property indexes") java.lang.String performPropertyIndexCleanup() throws CommitFailedException
CommitFailedException
@Description(value="Fetches hybrid property index info as json for index at given path") java.lang.String getHybridIndexInfo(@Name(value="indexPath") java.lang.String indexPath)
@Description(value="Fetches index size for index at given path") java.lang.String getSize(@Name(value="indexPath") java.lang.String indexPath) throws java.io.IOException
java.io.IOException
@Description(value="Fetches current number of docs for index at given path") java.lang.String getDocCount(@Name(value="indexPath") java.lang.String indexPath) throws java.io.IOException
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved