public class LuceneIndexer extends Object implements NodeStateIndexer
Constructor and Description |
---|
LuceneIndexer(org.apache.jackrabbit.oak.plugins.index.lucene.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.lucene.binary.BinaryTextExtractor 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.lucene.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.lucene.binary.BinaryTextExtractor binaryTextExtractor, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter)
public boolean shouldInclude(String path)
shouldInclude
in interface NodeStateIndexer
public boolean shouldInclude(NodeDocument doc)
shouldInclude
in interface NodeStateIndexer
public boolean index(NodeStateEntry entry) throws IOException, org.apache.jackrabbit.oak.api.CommitFailedException
index
in interface NodeStateIndexer
IOException
org.apache.jackrabbit.oak.api.CommitFailedException
public boolean indexesRelativeNodes()
indexesRelativeNodes
in interface NodeStateIndexer
public Set<String> getRelativeIndexedNodeNames()
getRelativeIndexedNodeNames
in interface NodeStateIndexer
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.