@ThreadSafe public class LuceneFullReindexManager extends Object implements FullReindexManager
Constructor and Description |
---|
LuceneFullReindexManager(IndexLockService lockService,
ReIndexer reIndexer,
SearchableDao searchableDao,
Collection<com.atlassian.bonnie.ILuceneConnection> luceneConnections) |
Modifier and Type | Method and Description |
---|---|
ReIndexTask |
getLastReindexingTask()
Retrieve the last reindexing task.
|
boolean |
isReIndexing()
Returns true if the system is currently being reindexed.
|
ReIndexTask |
reIndex()
Triggers a system wide reindex of all content and changes.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options)
Triggers a system wide reindex with specified options.
|
ReIndexTask |
reIndex(EnumSet<ReIndexOption> options,
SearchQuery searchQuery)
Triggers a system wide re-index where entities are loaded using provided
searchQuery . |
void |
unIndexAll()
Drop everything from the search index.
|
public LuceneFullReindexManager(IndexLockService lockService, ReIndexer reIndexer, SearchableDao searchableDao, Collection<com.atlassian.bonnie.ILuceneConnection> luceneConnections)
public ReIndexTask reIndex()
FullReindexManager
reIndex
in interface FullReindexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options)
FullReindexManager
reIndex
in interface FullReindexManager
public ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
FullReindexManager
searchQuery
.
If reindex is already in progress, returns it's stats.reIndex
in interface FullReindexManager
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 ReIndexTask getLastReindexingTask()
FullReindexManager
getLastReindexingTask
in interface FullReindexManager
public boolean isReIndexing()
FullReindexManager
isReIndexing
in interface FullReindexManager
public void unIndexAll()
FullReindexManager
unIndexAll
in interface FullReindexManager
Copyright © 2003–2021 Atlassian. All rights reserved.