com.atlassian.confluence.search.lucene.tasks
Class UpdateDocumentIndexTask
java.lang.Object
com.atlassian.confluence.search.lucene.tasks.BaseContentIndexTask
com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask
- All Implemented Interfaces:
- ContentIndexTask, IndexTask
public class UpdateDocumentIndexTask
- extends BaseContentIndexTask
UpdateDocumentIndexTask
public UpdateDocumentIndexTask(Searchable searchable)
UpdateDocumentIndexTask
public UpdateDocumentIndexTask(String handle)
throws ParseException
- Throws:
ParseException
getDescription
public String getDescription()
- Description copied from interface:
IndexTask
- A description of the task that can be presented to the user via the UI.
- Returns:
- an readable message.
getDeleteTask
public DeleteDocumentIndexTask getDeleteTask(IndexTaskFactory factory)
throws ParseException
- Returns the first part of the update: the removal of the old document from the index
- Throws:
ParseException
getAddTask
public AddDocumentIndexTask getAddTask(IndexTaskFactory factory)
throws ParseException
- Returns the second part of the update: adding the updated document to the index
- Throws:
ParseException