Class QueuingChangeIndexer
java.lang.Object
com.atlassian.confluence.impl.search.QueuingChangeIndexer
- All Implemented Interfaces:
Indexer
,ChangeIndexer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
index
(Searchable searchable) void
reIndex
(Searchable searchable) void
reIndexAllVersions
(Searchable searchable) Reindexes all versions of the specified content.void
reindexUsersInGroup
(String groupName) void
setAsyncIndexer
(Supplier<ChangeIndexer> asyncIndexer) void
setIndexerControl
(IndexerControl indexerControl) void
setIndexTaskFactory
(IndexTaskFactoryInternal indexTaskFactory) void
setSearchIndexAccessor
(SearchIndexAccessor searchIndexAccessor) void
setSyncIndexer
(Supplier<ChangeIndexer> syncIndexer) void
setTaskQueue
(IndexTaskQueue taskQueue) Return synchronous indexer that will perform index in the caller thread.void
unIndex
(Searchable searchable) void
unIndexSpace
(Space space)
-
Constructor Details
-
QueuingChangeIndexer
public QueuingChangeIndexer()
-
-
Method Details
-
index
-
unIndex
-
unIndexSpace
- Specified by:
unIndexSpace
in interfaceChangeIndexer
-
reindexUsersInGroup
- Specified by:
reindexUsersInGroup
in interfaceChangeIndexer
-
reIndex
-
reIndexAllVersions
Description copied from interface:ChangeIndexer
Reindexes all versions of the specified content. This could be expensive as the cost is proportional to the number of versions present. This should be invoked instead ofIndexer.reIndex(Searchable)
if what has been updated in the specified searchable is information that is duplicated across all versions of the changeable in the index (say permissions).- Specified by:
reIndexAllVersions
in interfaceChangeIndexer
- Parameters:
searchable
- aVersioned
changeable.
-
synchronous
Description copied from interface:ChangeIndexer
Return synchronous indexer that will perform index in the caller thread.- Specified by:
synchronous
in interfaceChangeIndexer
-
setTaskQueue
-
setIndexTaskFactory
-
setIndexerControl
-
setSearchIndexAccessor
-
setAsyncIndexer
-
setSyncIndexer
-