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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
reIndexExcludingDependentsAndChangeIndex
(Searchable searchable) Updates just an object itself in the Content index, excluding any dependents (attachments, comments, children, etc.)void
Add a content object and all its dependents (attachments, comments, children, etc.) to the index, but (in place) update only the permissions in the index document.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
setSearchableResolver
(SearchableResolver searchableResolver) void
setSearchIndexAccessor
(SearchIndexAccessor searchIndexAccessor) void
setTaskQueue
(IndexTaskQueue<ConfluenceIndexTask> taskQueue) 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
-
Constructor Details
-
QueuingConfluenceIndexer
public QueuingConfluenceIndexer()
-
-
Method Details
-
index
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
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
Description copied from interface:ConfluenceIndexer
Updates an object in the index- Specified by:
reIndex
in interfaceConfluenceIndexer
- Specified by:
reIndex
in interfaceIndexer
-
reIndexExcludingDependents
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
-
reIndexExcludingDependentsAndChangeIndex
Description copied from interface:ConfluenceIndexer
Updates just an object itself in the Content index, excluding any dependents (attachments, comments, children, etc.)- Specified by:
reIndexExcludingDependentsAndChangeIndex
in interfaceConfluenceIndexer
-
unIndexSpace
Description copied from interface:ConfluenceIndexer
Optimised unindex of all content in a space- Specified by:
unIndexSpace
in interfaceConfluenceIndexer
-
reindexUsersInGroup
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
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
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
-
reIndexPermissions
Description copied from interface:ConfluenceIndexer
Add a content object and all its dependents (attachments, comments, children, etc.) to the index, but (in place) update only the permissions in the index document. OpenSearch Only. DO NOT USE for Lucene.- Specified by:
reIndexPermissions
in interfaceConfluenceIndexer
- Parameters:
obj
- The content to be reindexed for permissions
-
synchronous
Description copied from interface:ConfluenceIndexer
Return synchronous indexer that will perform index in the caller thread.- Specified by:
synchronous
in interfaceConfluenceIndexer
-
setAsyncIndexer
-
setTaskQueue
-
setIndexTaskFactory
-
setSearchableResolver
-
setIndexerControl
-
setChangeIndexer
-
setSearchIndexAccessor
-