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 int
DEFAULT_REINDEX_PARTITION_SIZE_MAX
protected static Set<Index>
INDEXES_TO_SET_EARLIEST_ENTRY
static Set<Index>
INDEXES_TO_SNAPSHOT
static String
KEY_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, SearchPlatformConfig searchPlatformConfig, JournalManager journalManager, JournalService journalService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reIndex(ReIndexSpec spec, Progress progress)
Trigger reindex large amount of content entities accoding to the given specification.void
reIndex(EnumSet<ReIndexOption> maybeOptions, @NonNull SearchQuery searchQuery, Progress progress)
Triggers a system wide re-index all entities loaded from searchQuery.void
reIndex(EnumSet<ReIndexOption> maybeOptions, Progress progress)
Triggers a system wide re-index all entities from the database.void
reIndex(EnumSet<ReIndexOption> options, List<String> spaceKeys, Progress progress)
Triggers a re-index all entities from a space.
-
-
-
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, SearchPlatformConfig searchPlatformConfig, JournalManager journalManager, JournalService journalService)
-
-
Method Detail
-
reIndex
public void reIndex(EnumSet<ReIndexOption> maybeOptions, Progress progress)
Description copied from interface:ReIndexer
Triggers 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:ReIndexer
Triggers a system wide re-index all entities loaded from searchQuery.
-
reIndex
public void reIndex(EnumSet<ReIndexOption> options, List<String> spaceKeys, Progress progress)
Description copied from interface:ReIndexer
Triggers a re-index all entities from a space.
-
reIndex
public void reIndex(ReIndexSpec spec, Progress progress)
Description copied from interface:ReIndexer
Trigger reindex large amount of content entities accoding to the given specification.
-
-