Class LuceneIndexEditorProvider

    • Constructor Detail

      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider()
      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider​(@Nullable
                                         @Nullable IndexCopier indexCopier)
      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider​(@Nullable
                                         @Nullable IndexCopier indexCopier,
                                         org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache)
      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider​(@Nullable
                                         @Nullable IndexCopier indexCopier,
                                         org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache,
                                         @Nullable
                                         @Nullable IndexAugmentorFactory augmentorFactory,
                                         MountInfoProvider mountInfoProvider)
      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider​(@Nullable
                                         @Nullable IndexCopier indexCopier,
                                         @Nullable
                                         @Nullable IndexTracker indexTracker,
                                         org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache,
                                         @Nullable
                                         @Nullable IndexAugmentorFactory augmentorFactory,
                                         MountInfoProvider mountInfoProvider)
      • LuceneIndexEditorProvider

        public LuceneIndexEditorProvider​(@Nullable
                                         @Nullable IndexCopier indexCopier,
                                         @Nullable
                                         @Nullable IndexTracker indexTracker,
                                         org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache extractedTextCache,
                                         @Nullable
                                         @Nullable IndexAugmentorFactory augmentorFactory,
                                         MountInfoProvider mountInfoProvider,
                                         @NotNull
                                         org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.ActiveDeletedBlobCollector activeDeletedBlobCollector,
                                         @Nullable
                                         @Nullable LuceneIndexMBean mbean,
                                         @Nullable
                                         @Nullable StatisticsProvider statisticsProvider)
    • Method Detail

      • getIndexEditor

        public Editor getIndexEditor​(@NotNull
                                     @NotNull java.lang.String type,
                                     @NotNull
                                     @NotNull NodeBuilder definition,
                                     @NotNull
                                     @NotNull NodeState root,
                                     @NotNull
                                     @NotNull IndexUpdateCallback callback)
                              throws CommitFailedException
        Description copied from interface: IndexEditorProvider
        Each provider knows how to produce a certain type of index. If the type param is of an unknown value, the provider is expected to return null.

        The definition builder must points to the index definition node under which the indexer is expected to store the index content.

        The callback instance may be of type ContextAwareCallback and that can be used to access IndexingContext

        Specified by:
        getIndexEditor in interface IndexEditorProvider
        Parameters:
        type - index type
        definition - index definition node builder, used for updates
        root - root node state, used for things like node type information
        callback - used to register for index update notifications
        Returns:
        index update editor, or null if type is unknown
        Throws:
        CommitFailedException
      • getExtractedTextCache

        public org.apache.jackrabbit.oak.plugins.index.search.ExtractedTextCache getExtractedTextCache()
      • setInMemoryDocsLimit

        public void setInMemoryDocsLimit​(int inMemoryDocsLimit)
      • setIndexingQueue

        public void setIndexingQueue​(org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.IndexingQueue indexingQueue)
      • setWriterConfig

        public void setWriterConfig​(org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterConfig writerConfig)