public interface FulltextQueryTermsProvider
Modifier and Type | Field and Description |
---|---|
static FulltextQueryTermsProvider |
DEFAULT
Implementation which doesn't do anything useful...
|
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
getQueryTerm(String text,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.jackrabbit.oak.spi.state.NodeState indexDefinition)
This method would get called while forming full text clause for full text clause not constrained on a particular
field.
|
Set<String> |
getSupportedTypes()
This method is used to find which node types are supported by the implementation.
|
static final FulltextQueryTermsProvider DEFAULT
@CheckForNull org.apache.lucene.search.Query getQueryTerm(String text, org.apache.lucene.analysis.Analyzer analyzer, org.apache.jackrabbit.oak.spi.state.NodeState indexDefinition)
text
- full text termanalyzer
- Analyzer
being used while forming the query. Can be used to analyze text consistently.indexDefinition
- NodeState
of index definitionQuery
object to be OR'ed with query being prepared. null
, if nothing is to be added.@Nonnull Set<String> getSupportedTypes()
getQueryTerm(java.lang.String, org.apache.lucene.analysis.Analyzer, 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–2017 The Apache Software Foundation. All rights reserved.