public class LuceneIndexer extends java.lang.Object implements NodeStateIndexer, org.apache.jackrabbit.oak.plugins.index.lucene.util.FacetsConfigProvider
Constructor and Description |
---|
LuceneIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition,
org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriter indexWriter,
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() |
org.apache.lucene.facet.FacetsConfig |
getFacetsConfig() |
java.util.Set<java.lang.String> |
getRelativeIndexedNodeNames() |
boolean |
index(NodeStateEntry entry) |
boolean |
indexesRelativeNodes() |
boolean |
shouldInclude(NodeDocument doc) |
boolean |
shouldInclude(java.lang.String path) |
public LuceneIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition, org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriter indexWriter, 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(java.lang.String path)
shouldInclude
in interface NodeStateIndexer
public boolean shouldInclude(NodeDocument doc)
shouldInclude
in interface NodeStateIndexer
public boolean index(NodeStateEntry entry) throws java.io.IOException, CommitFailedException
index
in interface NodeStateIndexer
java.io.IOException
CommitFailedException
public boolean indexesRelativeNodes()
indexesRelativeNodes
in interface NodeStateIndexer
public java.util.Set<java.lang.String> getRelativeIndexedNodeNames()
getRelativeIndexedNodeNames
in interface NodeStateIndexer
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public org.apache.lucene.facet.FacetsConfig getFacetsConfig()
getFacetsConfig
in interface org.apache.jackrabbit.oak.plugins.index.lucene.util.FacetsConfigProvider
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.