Class LuceneIndexer
- java.lang.Object
-
- org.apache.jackrabbit.oak.index.indexer.document.LuceneIndexer
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,NodeStateIndexer
,org.apache.jackrabbit.oak.plugins.index.lucene.util.FacetsConfigProvider
public class LuceneIndexer extends Object implements NodeStateIndexer, org.apache.jackrabbit.oak.plugins.index.lucene.util.FacetsConfigProvider
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.lucene.facet.FacetsConfig
getFacetsConfig()
String
getIndexName()
Set<String>
getRelativeIndexedNodeNames()
boolean
index(NodeStateEntry entry)
boolean
indexesRelativeNodes()
void
onIndexingStarting()
boolean
shouldInclude(String path)
boolean
shouldInclude(NodeDocument doc)
String
toString()
-
-
-
Constructor Detail
-
LuceneIndexer
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)
-
-
Method Detail
-
onIndexingStarting
public void onIndexingStarting()
- Specified by:
onIndexingStarting
in interfaceNodeStateIndexer
-
shouldInclude
public boolean shouldInclude(String path)
- Specified by:
shouldInclude
in interfaceNodeStateIndexer
-
shouldInclude
public boolean shouldInclude(NodeDocument doc)
- Specified by:
shouldInclude
in interfaceNodeStateIndexer
-
index
public boolean index(NodeStateEntry entry) throws IOException, CommitFailedException
- Specified by:
index
in interfaceNodeStateIndexer
- Throws:
IOException
CommitFailedException
-
indexesRelativeNodes
public boolean indexesRelativeNodes()
- Specified by:
indexesRelativeNodes
in interfaceNodeStateIndexer
-
getRelativeIndexedNodeNames
public Set<String> getRelativeIndexedNodeNames()
- Specified by:
getRelativeIndexedNodeNames
in interfaceNodeStateIndexer
-
getIndexName
public String getIndexName()
- Specified by:
getIndexName
in interfaceNodeStateIndexer
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getFacetsConfig
public org.apache.lucene.facet.FacetsConfig getFacetsConfig()
- Specified by:
getFacetsConfig
in interfaceorg.apache.jackrabbit.oak.plugins.index.lucene.util.FacetsConfigProvider
-
-