Class LuceneFullReindexManager
java.lang.Object
com.atlassian.confluence.internal.index.lucene.LuceneFullReindexManager
- All Implemented Interfaces:
FullReindexManager
@LuceneIndependent
@ThreadSafe
public class LuceneFullReindexManager
extends Object
implements FullReindexManager
- Since:
- 7.9.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLuceneFullReindexManager(IndexLockService lockService, Reindexer reIndexer, SearchableDao searchableDao, Collection<SearchIndexAccessor> searchIndexAccessors, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the last reindexing task.booleanGets whether journal flush is currently suspendedbooleanReturns true if the current node is currently performing reindexing.reIndex()Triggers a system-wide reindex of all content and changes.reIndex(EnumSet<ReIndexOption> options) Triggers a system-wide reindex with specified options.reIndex(EnumSet<ReIndexOption> options, @NonNull List<String> spaceKeys) Triggers a re-index where entities are loaded using providedsearchQuery.reIndex(EnumSet<ReIndexOption> options, SearchQuery searchQuery) Triggers a system-wide re-index where entities are loaded using providedsearchQuery.voidDrop everything from the search index.
-
Field Details
-
REINDEX_METRIC_NAME
- See Also:
-
STOP_TASK_POLLING_INTERVAL
public static final long STOP_TASK_POLLING_INTERVAL- See Also:
-
-
Constructor Details
-
LuceneFullReindexManager
public LuceneFullReindexManager(IndexLockService lockService, Reindexer reIndexer, SearchableDao searchableDao, Collection<SearchIndexAccessor> searchIndexAccessors, com.atlassian.sal.api.features.DarkFeatureManager darkFeatureManager, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
reIndex
Description copied from interface:FullReindexManagerTriggers a system-wide reindex of all content and changes. Entities are loaded from the database. If reindex is already in progress, returns its stats.- Specified by:
reIndexin interfaceFullReindexManager
-
reIndex
Description copied from interface:FullReindexManagerTriggers a system-wide reindex with specified options. Entities are loaded from the database. If reindex is already in progress, returns its stats.- Specified by:
reIndexin interfaceFullReindexManager
-
reIndex
Description copied from interface:FullReindexManagerTriggers a system-wide re-index where entities are loaded using providedsearchQuery. If reindex is already in progress, returns its stats.- Specified by:
reIndexin interfaceFullReindexManager- Parameters:
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.
-
reIndex
Description copied from interface:FullReindexManagerTriggers a re-index where entities are loaded using providedsearchQuery. If reindex is already in progress, returns its stats.- Specified by:
reIndexin interfaceFullReindexManager- Parameters:
options- Optional. Allows a subset of all searchable content to be re-indexed.spaceKeys- Keys of the spaces to be re-indexed- Returns:
- the ReIndexTask
-
isJournalFlushSuspended
public boolean isJournalFlushSuspended()Description copied from interface:FullReindexManagerGets whether journal flush is currently suspended- Specified by:
isJournalFlushSuspendedin interfaceFullReindexManager- Returns:
- true if journal flush is currently suspended
-
getLastReindexingTask
Description copied from interface:FullReindexManagerRetrieve the last reindexing task. This task will provide all of the information required to track the progress/state of the reindexing process.- Specified by:
getLastReindexingTaskin interfaceFullReindexManager- Returns:
- the last executed reindex task, or null if no reindex has occured.
-
isReIndexing
public boolean isReIndexing()Description copied from interface:FullReindexManagerReturns true if the current node is currently performing reindexing.- Specified by:
isReIndexingin interfaceFullReindexManager- Returns:
- true if full reindex is in progress, false otherwise.
-
unIndexAll
public void unIndexAll()Description copied from interface:FullReindexManagerDrop everything from the search index. If the operation can't be performed, does nothing.- Specified by:
unIndexAllin interfaceFullReindexManager
-