public class LuceneIndexProvider extends java.lang.Object implements QueryIndexProvider, Observer, java.io.Closeable
LuceneIndex
Constructor and Description |
---|
LuceneIndexProvider() |
LuceneIndexProvider(IndexCopier indexCopier) |
LuceneIndexProvider(IndexTracker tracker) |
LuceneIndexProvider(IndexTracker tracker,
ScorerProviderFactory scorerFactory,
IndexAugmentorFactory augmentorFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
contentChanged(@NotNull NodeState root,
@NotNull CommitInfo info)
Observes a content change.
|
@NotNull java.util.List<QueryIndex> |
getQueryIndexes(NodeState nodeState)
Get the currently configured indexes.
|
void |
setAggregator(QueryIndex.NodeAggregator aggregator)
sets the default node aggregator that will be used at query time
|
LuceneIndexProvider |
with(QueryIndex.NodeAggregator analyzer) |
public LuceneIndexProvider()
public LuceneIndexProvider(IndexCopier indexCopier)
public LuceneIndexProvider(IndexTracker tracker)
public LuceneIndexProvider(IndexTracker tracker, ScorerProviderFactory scorerFactory, IndexAugmentorFactory augmentorFactory)
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public void contentChanged(@NotNull @NotNull NodeState root, @NotNull @NotNull CommitInfo info)
Observer
Observer
class javadocs
and relevant repository and observer registration details for more
information on when and how this method gets called.contentChanged
in interface Observer
root
- root state of the repositoryinfo
- commit information@NotNull public @NotNull java.util.List<QueryIndex> getQueryIndexes(NodeState nodeState)
QueryIndexProvider
getQueryIndexes
in interface QueryIndexProvider
nodeState
- the node state of the rootpublic void setAggregator(QueryIndex.NodeAggregator aggregator)
aggregator
- the node aggregatorpublic LuceneIndexProvider with(QueryIndex.NodeAggregator analyzer)
Copyright © 2010 - 2020 Adobe. All Rights Reserved