Class QueuingConfluenceIndexer
- java.lang.Object
-
- com.atlassian.confluence.internal.search.QueuingConfluenceIndexer
-
- All Implemented Interfaces:
Indexer
,ConfluenceIndexer
@LuceneIndependent @Internal public class QueuingConfluenceIndexer extends Object implements ConfluenceIndexer
-
-
Constructor Summary
Constructors Constructor Description QueuingConfluenceIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
index(Searchable searchable)
Indexes the object without removing any existing copies from the indexvoid
indexIncludingDependents(Searchable searchable)
Add a content object and all its dependents (attachments, comments, children, etc.) to the indexvoid
reIndex(Searchable searchable)
Updates an object in the indexvoid
reIndexExcludingDependents(Searchable searchable)
Updates just an object itself in the index, excluding any dependents (attachments, comments, children, etc.)void
reindexUsersInGroup(String groupName)
Optimised reindex of all indexed information relating to the given groupvoid
setAsyncIndexer(Supplier<ConfluenceIndexer> asyncIndexer)
void
setChangeIndexer(ChangeIndexer changeIndexer)
void
setIndexerControl(IndexerControl indexerControl)
void
setIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)
void
setSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)
void
setSyncIndexer(Supplier<ConfluenceIndexer> syncIndexer)
void
setTaskQueue(IndexTaskQueue taskQueue)
ConfluenceIndexer
synchronous()
Return synchronous indexer that will perform index in the caller thread.void
unIndex(Searchable searchable)
Removes any existing copies of the object from the indexvoid
unIndexIncludingDependents(Searchable searchable)
Remove a content object and all its dependents (attachments, comments, children, etc.) from the indexvoid
unIndexSpace(Space space)
Optimised unindex of all content in a space
-
-
-
Method Detail
-
index
public void index(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Indexes the object without removing any existing copies from the index- Specified by:
index
in interfaceConfluenceIndexer
- Specified by:
index
in interfaceIndexer
-
unIndex
public void unIndex(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Removes any existing copies of the object from the index- Specified by:
unIndex
in interfaceConfluenceIndexer
- Specified by:
unIndex
in interfaceIndexer
-
reIndex
public void reIndex(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Updates an object in the index- Specified by:
reIndex
in interfaceConfluenceIndexer
- Specified by:
reIndex
in interfaceIndexer
-
reIndexExcludingDependents
public void reIndexExcludingDependents(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Updates just an object itself in the index, excluding any dependents (attachments, comments, children, etc.)- Specified by:
reIndexExcludingDependents
in interfaceConfluenceIndexer
-
unIndexSpace
public void unIndexSpace(Space space)
Description copied from interface:ConfluenceIndexer
Optimised unindex of all content in a space- Specified by:
unIndexSpace
in interfaceConfluenceIndexer
-
reindexUsersInGroup
public void reindexUsersInGroup(String groupName)
Description copied from interface:ConfluenceIndexer
Optimised reindex of all indexed information relating to the given group- Specified by:
reindexUsersInGroup
in interfaceConfluenceIndexer
- Parameters:
groupName
- the group to reindex
-
unIndexIncludingDependents
public void unIndexIncludingDependents(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Remove a content object and all its dependents (attachments, comments, children, etc.) from the index- Specified by:
unIndexIncludingDependents
in interfaceConfluenceIndexer
-
indexIncludingDependents
public void indexIncludingDependents(Searchable searchable)
Description copied from interface:ConfluenceIndexer
Add a content object and all its dependents (attachments, comments, children, etc.) to the index- Specified by:
indexIncludingDependents
in interfaceConfluenceIndexer
-
synchronous
public ConfluenceIndexer synchronous()
Description copied from interface:ConfluenceIndexer
Return synchronous indexer that will perform index in the caller thread.- Specified by:
synchronous
in interfaceConfluenceIndexer
-
setSyncIndexer
public void setSyncIndexer(Supplier<ConfluenceIndexer> syncIndexer)
-
setAsyncIndexer
public void setAsyncIndexer(Supplier<ConfluenceIndexer> asyncIndexer)
-
setTaskQueue
public void setTaskQueue(IndexTaskQueue taskQueue)
-
setIndexTaskFactory
public void setIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)
-
setIndexerControl
public void setIndexerControl(IndexerControl indexerControl)
-
setChangeIndexer
public void setChangeIndexer(ChangeIndexer changeIndexer)
-
setSearchIndexAccessor
public void setSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)
-
-