Class AbstractReindexer

java.lang.Object
com.atlassian.confluence.internal.index.AbstractReindexer
All Implemented Interfaces:
Reindexer
Direct Known Subclasses:
BlueGreenReindexer, PropagableReindexer

public abstract class AbstractReindexer extends Object implements Reindexer
  • Field Details

    • INDEXES_TO_SET_EARLIEST_ENTRY

      protected static final Set<Index> INDEXES_TO_SET_EARLIEST_ENTRY
    • INDEXES_TO_SNAPSHOT

      public static final Set<Index> INDEXES_TO_SNAPSHOT
    • KEY_REINDEX_PARTITION_SIZE_MAX

      public static final String KEY_REINDEX_PARTITION_SIZE_MAX
      See Also:
    • DEFAULT_REINDEX_PARTITION_SIZE_MAX

      public static final int DEFAULT_REINDEX_PARTITION_SIZE_MAX
      See Also:
    • contentIndexAccessor

      protected final SearchIndexAccessor contentIndexAccessor
    • changeIndexAccessor

      protected final SearchIndexAccessor changeIndexAccessor
    • searchableDao

      protected final SearchableDao searchableDao
    • eventPublisher

      protected final com.atlassian.event.api.EventPublisher eventPublisher
    • batchIndexerFactory

      protected final com.atlassian.confluence.internal.index.BatchIndexerFactory batchIndexerFactory
    • journalManager

      protected final JournalManager journalManager
    • journalService

      protected final JournalService journalService
  • Constructor Details

  • Method Details

    • 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.
      Specified by:
      reIndex in interface Reindexer
      Parameters:
      maybeOptions - Optional. Allows a subset of all searchable content to be re-indexed.
      progress - object to track progress of re-index.
    • reIndex

      protected void reIndex(EnumSet<ReIndexOption> maybeOptions, AbstractReindexer.Context ctx)
    • 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.
      Specified by:
      reIndex in interface Reindexer
      Parameters:
      maybeOptions - Optional. Allows a subset of all searchable content to be re-indexed.
      searchQuery - A query that may be used to load the entities to be re-indexed.
      progress - object to track progress of re-index.
    • 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.
      Specified by:
      reIndex in interface Reindexer
      Parameters:
      options - Optional. Allows a subset of all searchable content to be re-indexed.
      spaceKeys - The keys of the spaces where the entities are loaded from.
      progress - object to track progress of re-index.