Class LuceneReIndexer

    • Field Detail

      • 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
      • DEFAULT_REINDEX_PARTITION_SIZE_MAX

        public static final int DEFAULT_REINDEX_PARTITION_SIZE_MAX
        See Also:
        Constant Field Values
    • 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.
        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

        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.
        progress - object to track progress of re-index.
      • 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.
        Specified by:
        reIndex in interface ReIndexer