Class ReindexAllSpacesContentIndexTask
java.lang.Object
com.atlassian.confluence.internal.search.tasks.ReindexAllSpacesContentIndexTask
- All Implemented Interfaces:
ConfluenceIndexTask
,ConvertibleToJournalEntry
,IndexTask
@LuceneIndependent
@Internal
public class ReindexAllSpacesContentIndexTask
extends Object
implements ConfluenceIndexTask
Update all spaces in the content index.
- Since:
- 7.9.0
-
Constructor Summary
ConstructorDescriptionReindexAllSpacesContentIndexTask
(SpaceDao spaceDao, IndexTaskFactoryInternal indexTaskFactory) -
Method Summary
Modifier and TypeMethodDescriptionconvertToJournalEntry
(JournalIdentifier journalId) Convert to journal entry.A description of the task that can be presented to the user via the UI.void
perform
(SearchIndexWriter writer) Executes this task against a document writer.
-
Constructor Details
-
ReindexAllSpacesContentIndexTask
public ReindexAllSpacesContentIndexTask(SpaceDao spaceDao, IndexTaskFactoryInternal indexTaskFactory)
-
-
Method Details
-
getDescription
Description copied from interface:IndexTask
A description of the task that can be presented to the user via the UI.- Specified by:
getDescription
in interfaceIndexTask
- Returns:
- an readable message.
-
perform
Description copied from interface:ConfluenceIndexTask
Executes this task against a document writer.- Specified by:
perform
in interfaceConfluenceIndexTask
-
convertToJournalEntry
Description copied from interface:ConvertibleToJournalEntry
Convert to journal entry.- Specified by:
convertToJournalEntry
in interfaceConvertibleToJournalEntry
- Parameters:
journalId
- journal identifier- Returns:
- an optional containing a journal entry or empty if this cannot be converted.
-
getSearchIndex
- Specified by:
getSearchIndex
in interfaceConfluenceIndexTask
- Returns:
- the
SearchIndex
that the task should write to
-