Interface ReIndexer

  • All Known Implementing Classes:
    LuceneReIndexer

    @Internal
    public interface ReIndexer
    Responsible for triggering re-indexing / rebuilding of the Confluence search index.

    Warning: Client code should use IndexManager.reIndex() instead of this class, because it will ensure proper locking is in place. Calling ReIndexer directly can result to races with other index operations.

    Since:
    8.0 - This class is for internal use only. Please use IndexManager.reIndex() in plugins instead.
    • Method Detail

      • reIndex

        default void reIndex​(Progress progress)
        Triggers a system wide re-index.
        Parameters:
        progress - object to track progress of re-index.
      • reIndex

        void reIndex​(EnumSet<ReIndexOption> options,
                     Progress progress)
        Triggers a system wide re-index all entities from the database.
        Parameters:
        options - Optional. Allows a subset of all searchable content to be re-indexed.
        progress - object to track progress of re-index.
      • reIndex

        void reIndex​(EnumSet<ReIndexOption> options,
                     @NonNull SearchQuery searchQuery,
                     Progress progress)
        Triggers a system wide re-index re-index all entities loaded from searchQuery.
        Parameters:
        options - 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

        @ExperimentalApi
        void reIndex​(ReIndexSpec spec,
                     Progress progress)
        Trigger reindex large amount of content entities accoding to the given specification.
        Parameters:
        spec -
        progress -
        Since:
        7.0