Class QueuingChangeIndexer
- java.lang.Object
-
- com.atlassian.confluence.impl.search.QueuingChangeIndexer
-
- All Implemented Interfaces:
Indexer,ChangeIndexer
public class QueuingChangeIndexer extends Object implements ChangeIndexer
-
-
Constructor Summary
Constructors Constructor Description QueuingChangeIndexer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidindex(Searchable searchable)voidreIndex(Searchable searchable)voidreIndexAllVersions(Searchable searchable)Reindexes all versions of the specified content.voidreindexUsersInGroup(String groupName)voidsetAsyncIndexer(Supplier<ChangeIndexer> asyncIndexer)voidsetIndexerControl(IndexerControl indexerControl)voidsetIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)voidsetSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)voidsetSyncIndexer(Supplier<ChangeIndexer> syncIndexer)voidsetTaskQueue(IndexTaskQueue taskQueue)ChangeIndexersynchronous()Return synchronous indexer that will perform index in the caller thread.voidunIndex(Searchable searchable)voidunIndexSpace(Space space)
-
-
-
Method Detail
-
index
public void index(Searchable searchable)
-
unIndex
public void unIndex(Searchable searchable)
-
unIndexSpace
public void unIndexSpace(Space space)
- Specified by:
unIndexSpacein interfaceChangeIndexer
-
reindexUsersInGroup
public void reindexUsersInGroup(String groupName)
- Specified by:
reindexUsersInGroupin interfaceChangeIndexer
-
reIndex
public void reIndex(Searchable searchable)
-
reIndexAllVersions
public void reIndexAllVersions(Searchable searchable)
Description copied from interface:ChangeIndexerReindexes 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:
reIndexAllVersionsin interfaceChangeIndexer- Parameters:
searchable- aVersionedchangeable.
-
synchronous
public ChangeIndexer synchronous()
Description copied from interface:ChangeIndexerReturn synchronous indexer that will perform index in the caller thread.- Specified by:
synchronousin interfaceChangeIndexer
-
setTaskQueue
public void setTaskQueue(IndexTaskQueue taskQueue)
-
setIndexTaskFactory
public void setIndexTaskFactory(IndexTaskFactoryInternal indexTaskFactory)
-
setIndexerControl
public void setIndexerControl(IndexerControl indexerControl)
-
setSearchIndexAccessor
public void setSearchIndexAccessor(SearchIndexAccessor searchIndexAccessor)
-
setAsyncIndexer
public void setAsyncIndexer(Supplier<ChangeIndexer> asyncIndexer)
-
setSyncIndexer
public void setSyncIndexer(Supplier<ChangeIndexer> syncIndexer)
-
-