Interface LuceneIndexMBean
-
- All Superinterfaces:
org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
- All Known Implementing Classes:
LuceneIndexMBeanImpl
public interface LuceneIndexMBean extends org.apache.jackrabbit.oak.plugins.index.search.IndexMBean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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[]
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[]
getFieldTermsInfo(java.lang.String indexPath, java.lang.String field, java.lang.String fieldType, int max)
java.lang.String
getHybridIndexInfo(java.lang.String indexPath)
java.lang.String[]
getIndexedPaths(java.lang.String indexPath, int maxLevel, int maxPathCount)
java.lang.String
getStoredIndexDefinition(java.lang.String indexPath)
boolean
isFailing()
java.lang.String
performPropertyIndexCleanup()
java.lang.String
performPropertyIndexCleanup(java.lang.String paths, int batchSize, int sleepPerBatch, int maxRemoveCount)
-
-
-
Field Detail
-
TYPE
static final java.lang.String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBadIndexStats
javax.management.openmbean.TabularData getBadIndexStats()
-
getBadPersistedIndexStats
javax.management.openmbean.TabularData getBadPersistedIndexStats()
-
isFailing
boolean isFailing()
-
getIndexedPaths
@Description("Determines the set of index paths up to 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("Index path for which stats are to be determined") @Name("indexPath") java.lang.String indexPath, @Name("maxLevel") @Description("Maximum depth to examine. E.g. 5. Stats calculation would break out after this limit") int maxLevel, @Description("Maximum number of unique paths to examine. E.g. 100. Stats calculation would break out after this limit") @Name("maxPathCount") int maxPathCount) throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldInfo
@Description("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("indexPath") @Description("The index path (empty for all indexes)") java.lang.String indexPath) throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldTermsInfo
@Description("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("indexPath") @Description("The index path (empty for all indexes)") java.lang.String indexPath, @Name("field") @Description("The field name (empty for all fields)") java.lang.String field, @Name("max") @Description("The maximum number of entries to return (e.g. 100)") int max) throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldTermsInfo
@Description("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("indexPath") @Description("The index path (empty for all indexes)") java.lang.String indexPath, @Name("field") @Description("The field name (empty for all fields)") java.lang.String field, @Name("fieldType") @Description("The type of the field (empty for string)") java.lang.String fieldType, @Name("max") @Description("The maximum number of entries to return (e.g. 100)") int max) throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldTermInfo
@Description("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("indexPath") @Description("The index path (empty for all indexes)") java.lang.String indexPath, @Name("field") @Description("The field name (empty for all fields)") java.lang.String field, @Name("term") @Description("The term") java.lang.String term) throws java.io.IOException
- Throws:
java.io.IOException
-
getStoredIndexDefinition
@Description("Returns the stored index definition for index at given path in string form") java.lang.String getStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
-
diffStoredIndexDefinition
@Description("Returns the diff of index definition for index at given path from the stored index definition in string form") java.lang.String diffStoredIndexDefinition(@Name("indexPath") java.lang.String indexPath)
-
checkConsistency
@Description("Performs consistency check on given index") java.lang.String checkConsistency(@Name("indexPath") java.lang.String indexPath, @Name("fullCheck") @Description("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
- Throws:
java.io.IOException
-
checkAndReportConsistencyOfAllIndexes
@Description("Performs consistency check for all Lucene indexes and reports in simple format") java.lang.String[] checkAndReportConsistencyOfAllIndexes(@Name("fullCheck") @Description("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
- Throws:
java.io.IOException
-
checkConsistencyOfAllIndexes
@Description("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("fullCheck") @Description("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
- Throws:
java.io.IOException
-
performPropertyIndexCleanup
@Description("Performs any possible cleanup of the hybrid property indexes") java.lang.String performPropertyIndexCleanup() throws CommitFailedException
- Throws:
CommitFailedException
-
performPropertyIndexCleanup
@Description("Performs cleanup of property indexes") java.lang.String performPropertyIndexCleanup(@Name("paths") @Description("The list of paths (comma separated). Must be hidden nodes") java.lang.String paths, @Name("batchSize") @Description("The batch size, e.g. 1024") int batchSize, @Name("sleepPerBatch") @Description("The number of milliseconds to sleep per batch") int sleepPerBatch, @Name("maxRemoveCount") @Description("The maximum number of nodes to remove per path, e.g. 1000000") int maxRemoveCount) throws CommitFailedException
- Throws:
CommitFailedException
-
getHybridIndexInfo
@Description("Fetches hybrid property index info as json for index at given path") java.lang.String getHybridIndexInfo(@Name("indexPath") java.lang.String indexPath)
-
-