public class IndexTaskFactory extends Object
Constructor and Description |
---|
IndexTaskFactory() |
public void setDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder documentBuilder)
public UnIndexSpaceIndexTask createUnIndexSpaceTask(String handle)
handle
- space keypublic UnIndexSpaceIndexTask createUnIndexSpaceTask(Space space)
public ConfluenceIndexTask createDeleteDocumentTask(com.atlassian.bonnie.Searchable searchable)
public ConfluenceIndexTask createDeleteDocumentTask(String handle)
public ConfluenceIndexTask createUpdateDocumentTask(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchablepublic ConfluenceIndexTask createAddDocumentTask(com.atlassian.bonnie.Searchable searchable)
createDeleteDocumentTask(com.atlassian.bonnie.Searchable)
for the same object. The index flushing strategy is intentionally inaccurate and relies on an in-memory 'flushed entries' cache
to prevent the same object being flushed twice, which risks duplicate entries being created in the index immediately after
the application is restarted. CONF-29072 has additional details.
You probably want to use createUpdateDocumentTask(com.atlassian.bonnie.Searchable)
instead - the delete
operation will fail silently :)searchable
- the searchablepublic ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
searchable
- public ConfluenceIndexTask createDeleteChangeDocumentsIndexTask(String handle)
handle
- handle to the latest versionpublic OptimizeIndexTask createOptimizeIndexTask()
public ConfluenceIndexTask createRebuildChangeDocumentsIndexTask(com.atlassian.bonnie.Searchable searchable)
public ConfluenceIndexTask createAddChangeDocumentTask(com.atlassian.bonnie.Searchable searchable)
searchable
- the searchableNoOpIndexTask
if searchable is nullpublic void setChangeDocumentBuilder(com.atlassian.bonnie.search.DocumentBuilder changeDocumentBuilder)
public void setContentEntityObjectDao(ContentEntityObjectDao contentEntityObjectDao)
public AttachmentManager getAttachmentManager()
@Deprecated public void setAnyTypeDao(AnyTypeDao anyTypeDao)
anyTypeDao
- Copyright © 2003–2015 Atlassian. All rights reserved.