public interface IndexManager
Modifier and Type | Interface and Description |
---|---|
static class |
IndexManager.IndexQueueFlushMode
Enum indicating the mode in which to flush the queue.
|
Modifier and Type | Method and Description |
---|---|
void |
addTask(ConfluenceIndexTask task)
Adds a new task to the index queue
|
default boolean |
flushQueue()
Flushes the index queue, processing all of the tasks.
|
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
FlushStatistics |
getLastNonEmptyFlushStats() |
ReIndexTask |
getLastReindexingTask() |
int |
getQueueSize() |
IndexTaskQueue |
getTaskQueue()
Deprecated.
since 7.9.0 Use
IndexManager methods instead of calling corresponding methods on queue directly.
This method is deprecated because Confluence will no longer have only one index queue |
boolean |
isFlushing()
Returns true if the the index queue is currently being flushed.
|
default boolean |
isReIndexing()
Returns true if the system is currently being reindexed.
|
default ReIndexTask |
reIndex()
Triggers a system wide reindex of all content.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options)
Triggers a system wide reindex with specified options, entities are loaded from the database.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options,
SearchQuery searchQuery)
Triggers a system wide re-index.
|
void |
resetIndexQueue()
Resets the index queue removes all entries from the queue without processing them.
|
void |
unIndexAll() |
boolean isFlushing()
default boolean isReIndexing()
boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
flushMode
- - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.sizedefault boolean flushQueue()
default ReIndexTask reIndex()
ReIndexTask reIndex(EnumSet<ReIndexOption> options)
ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
options
- Optional. Allows a subset of all searchable content to be re-indexed.searchQuery
- A query that is used to load the entities to be re-indexed.void unIndexAll()
ReIndexTask getLastReindexingTask()
void resetIndexQueue()
@Deprecated IndexTaskQueue getTaskQueue()
IndexManager
methods instead of calling corresponding methods on queue directly.
This method is deprecated because Confluence will no longer have only one index queueFlushStatistics getLastNonEmptyFlushStats()
int getQueueSize()
void addTask(ConfluenceIndexTask task)
Copyright © 2003–2023 Atlassian. All rights reserved.