public class ElasticIndexer extends java.lang.Object implements NodeStateIndexer
Constructor and Description |
---|
ElasticIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition,
org.apache.jackrabbit.oak.plugins.index.search.spi.binary.FulltextBinaryTextExtractor binaryTextExtractor,
NodeBuilder definitionBuilder,
org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter,
org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextIndexWriter<org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticDocument> indexWriter,
org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexEditorProvider elasticIndexEditorProvider,
IndexHelper indexHelper) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.util.Set<java.lang.String> |
getRelativeIndexedNodeNames() |
boolean |
index(NodeStateEntry entry) |
boolean |
indexesRelativeNodes() |
void |
provisionIndex() |
boolean |
shouldInclude(NodeDocument doc) |
boolean |
shouldInclude(java.lang.String path) |
public ElasticIndexer(org.apache.jackrabbit.oak.plugins.index.search.IndexDefinition definition, org.apache.jackrabbit.oak.plugins.index.search.spi.binary.FulltextBinaryTextExtractor binaryTextExtractor, NodeBuilder definitionBuilder, org.apache.jackrabbit.oak.plugins.index.progress.IndexingProgressReporter progressReporter, org.apache.jackrabbit.oak.plugins.index.search.spi.editor.FulltextIndexWriter<org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticDocument> indexWriter, org.apache.jackrabbit.oak.plugins.index.elastic.index.ElasticIndexEditorProvider elasticIndexEditorProvider, IndexHelper indexHelper)
public boolean shouldInclude(java.lang.String path)
shouldInclude
in interface NodeStateIndexer
public boolean shouldInclude(NodeDocument doc)
shouldInclude
in interface NodeStateIndexer
public void provisionIndex()
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
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.