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 |
---|---|
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() |
IndexTaskQueue |
getTaskQueue()
Retrieves the index task queue that is being used by this manager.
|
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()
IndexTaskQueue getTaskQueue()
FlushStatistics getLastNonEmptyFlushStats()
Copyright © 2003–2019 Atlassian. All rights reserved.