Class LuceneReIndexer
- java.lang.Object
-
- com.atlassian.confluence.internal.index.lucene.LuceneReIndexer
-
- All Implemented Interfaces:
ReIndexer
@LuceneIndependent @Internal public class LuceneReIndexer extends Object implements ReIndexer
- Since:
- 5.10
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_REINDEX_PARTITION_SIZE_MAXstatic Set<Index>INDEXES_TO_SNAPSHOTstatic StringKEY_REINDEX_PARTITION_SIZE_MAX
-
Constructor Summary
Constructors Constructor Description LuceneReIndexer(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, ClusterManager clusterManager, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue, com.atlassian.confluence.internal.index.lucene.BatchIndexerFactory batchIndexerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreIndex(ReIndexSpec spec, Progress progress)Trigger reindex large amount of content entities accoding to the given specification.voidreIndex(EnumSet<ReIndexOption> maybeOptions, @NonNull SearchQuery searchQuery, Progress progress)Triggers a system wide re-index re-index all entities loaded from searchQuery.voidreIndex(EnumSet<ReIndexOption> maybeOptions, Progress progress)Triggers a system wide re-index all entities from the database.
-
-
-
Field Detail
-
KEY_REINDEX_PARTITION_SIZE_MAX
public static final String KEY_REINDEX_PARTITION_SIZE_MAX
- See Also:
- Constant Field Values
-
DEFAULT_REINDEX_PARTITION_SIZE_MAX
public static final int DEFAULT_REINDEX_PARTITION_SIZE_MAX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LuceneReIndexer
public LuceneReIndexer(SearchableDao searchableDao, SearchIndexAccessor contentIndexAccessor, SearchIndexAccessor changeIndexAccessor, com.atlassian.event.api.EventPublisher eventPublisher, ClusterManager clusterManager, SystemMaintenanceTaskQueue systemMaintenanceTaskQueue, com.atlassian.confluence.internal.index.lucene.BatchIndexerFactory batchIndexerFactory)
-
-
Method Detail
-
reIndex
public void reIndex(EnumSet<ReIndexOption> maybeOptions, Progress progress)
Description copied from interface:ReIndexerTriggers a system wide re-index all entities from the database.
-
reIndex
public void reIndex(EnumSet<ReIndexOption> maybeOptions, @NonNull SearchQuery searchQuery, Progress progress)
Description copied from interface:ReIndexerTriggers a system wide re-index re-index all entities loaded from searchQuery.
-
reIndex
public void reIndex(ReIndexSpec spec, Progress progress)
Description copied from interface:ReIndexerTrigger reindex large amount of content entities accoding to the given specification.
-
-