public interface IndexFieldProvider
Modifier and Type | Field and Description |
---|---|
static IndexFieldProvider |
DEFAULT
Implementation which doesn't do anything useful...
|
Modifier and Type | Method and Description |
---|---|
Iterable<org.apache.lucene.document.Field> |
getAugmentedFields(String path,
org.apache.jackrabbit.oak.spi.state.NodeState document,
org.apache.jackrabbit.oak.spi.state.NodeState indexDefinition)
This method would get called while indexing a document.
|
Set<String> |
getSupportedTypes()
This method is used to find which node types are supported by the implementation.
|
static final IndexFieldProvider DEFAULT
@Nonnull Iterable<org.apache.lucene.document.Field> getAugmentedFields(String path, org.apache.jackrabbit.oak.spi.state.NodeState document, org.apache.jackrabbit.oak.spi.state.NodeState indexDefinition)
path
- path of the document being indexeddocument
- NodeState
of the document being indexedindexDefinition
- NodeState
of index definitionIterable
of fields that are to be added to Document
being prepared@Nonnull Set<String> getSupportedTypes()
getAugmentedFields(java.lang.String, org.apache.jackrabbit.oak.spi.state.NodeState, org.apache.jackrabbit.oak.spi.state.NodeState)
which declare a matching node type. Note, node types are
exact matches and do not support inheritance.Set
of types supported by the implementationCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.