public class LuceneIndexer extends Object implements NodeStateIndexer
| Constructor and Description |
|---|
LuceneIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition,
org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriter indexWriter,
org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
org.apache.jackrabbit.oak.plugins.index.search.spi.binary.FulltextBinaryTextExtractor binaryTextExtractor,
org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Set<String> |
getRelativeIndexedNodeNames() |
boolean |
index(NodeStateEntry entry) |
boolean |
indexesRelativeNodes() |
boolean |
shouldInclude(NodeDocument doc) |
boolean |
shouldInclude(String path) |
public LuceneIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition, org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriter indexWriter, org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, org.apache.jackrabbit.oak.plugins.index.search.spi.binary.FulltextBinaryTextExtractor binaryTextExtractor, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter)
public boolean shouldInclude(String path)
shouldInclude in interface NodeStateIndexerpublic boolean shouldInclude(NodeDocument doc)
shouldInclude in interface NodeStateIndexerpublic boolean index(NodeStateEntry entry) throws IOException, org.apache.jackrabbit.oak.api.CommitFailedException
index in interface NodeStateIndexerIOExceptionorg.apache.jackrabbit.oak.api.CommitFailedExceptionpublic boolean indexesRelativeNodes()
indexesRelativeNodes in interface NodeStateIndexerpublic Set<String> getRelativeIndexedNodeNames()
getRelativeIndexedNodeNames in interface NodeStateIndexerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2020 The Apache Software Foundation. All rights reserved.