@Internal public class ESIndexManager extends Object implements IndexManager
IndexManager.IndexQueueFlushMode
Constructor and Description |
---|
ESIndexManager(SearchableDao searchableDao,
IndexTaskQueue<ESTask> taskQueue,
ESIndexQueueFlusher esIndexQueueFlusher,
ReIndexer reIndexer,
Runnable unIndexer) |
Modifier and Type | Method and Description |
---|---|
boolean |
flushQueue(IndexManager.IndexQueueFlushMode flushMode)
Flushes the index queue, processing a batch of the tasks
|
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.
|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flushQueue, isReIndexing, reIndex
public ESIndexManager(SearchableDao searchableDao, IndexTaskQueue<ESTask> taskQueue, ESIndexQueueFlusher esIndexQueueFlusher, ReIndexer reIndexer, Runnable unIndexer)
public void resetIndexQueue()
IndexManager
resetIndexQueue
in interface IndexManager
public boolean flushQueue(IndexManager.IndexQueueFlushMode flushMode)
IndexManager
flushQueue
in interface IndexManager
flushMode
- - whether to flush the entire queue, or just one batch of batchsize as specified by
the system property index.queue.batch.sizepublic ReIndexTask getLastReindexingTask()
getLastReindexingTask
in interface IndexManager
public boolean isFlushing()
IndexManager
isFlushing
in interface IndexManager
public void unIndexAll()
unIndexAll
in interface IndexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options)
IndexManager
reIndex
in interface IndexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
IndexManager
reIndex
in interface IndexManager
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.public IndexTaskQueue getTaskQueue()
IndexManager
getTaskQueue
in interface IndexManager
Copyright © 2003–2016 Atlassian. All rights reserved.