@LuceneIndependent @ThreadSafe public class LuceneFullReindexManager extends Object implements FullReindexManager
| Modifier and Type | Field and Description |
|---|---|
static String |
REINDEX_METRIC_NAME |
| Constructor and Description |
|---|
LuceneFullReindexManager(IndexLockService lockService,
ReIndexer reIndexer,
SearchableDao searchableDao,
Collection<SearchIndexAccessor> searchIndexAccessors) |
| 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 static final String REINDEX_METRIC_NAME
public LuceneFullReindexManager(IndexLockService lockService, ReIndexer reIndexer, SearchableDao searchableDao, Collection<SearchIndexAccessor> searchIndexAccessors)
public ReIndexTask reIndex()
FullReindexManagerreIndex in interface FullReindexManagerpublic ReIndexTask reIndex(EnumSet<ReIndexOption> options)
FullReindexManagerreIndex in interface FullReindexManagerpublic ReIndexTask reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery)
FullReindexManagersearchQuery.
If reindex is already in progress, returns it's stats.reIndex in interface FullReindexManageroptions - 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()
FullReindexManagergetLastReindexingTask in interface FullReindexManagerpublic boolean isReIndexing()
FullReindexManagerisReIndexing in interface FullReindexManagerpublic void unIndexAll()
FullReindexManagerunIndexAll in interface FullReindexManagerCopyright © 2003–2022 Atlassian. All rights reserved.