S - The "self" type (the actual exposed type of this step).public interface SimpleQueryStringPredicateOptionsStep<S extends SimpleQueryStringPredicateOptionsStep<?>> extends PredicateFinalStep, PredicateScoreStep<S>
| Modifier and Type | Method and Description |
|---|---|
S |
analyzer(String analyzerName)
Define an analyzer to use at query time to interpret the value to match.
|
S |
defaultOperator(BooleanOperator operator)
Define the default operator.
|
S |
skipAnalysis()
Any analyzer or normalizer defined on any field will be ignored to interpret the value to match.
|
toPredicateconstantScoreboostS defaultOperator(BooleanOperator operator)
By default, unless the query string contains explicit operators,
documents will match if any term mentioned in the query string is present in the document (OR operator).
This can be used to change the default behavior to AND,
making document match if all terms mentioned in the query string are present in the document.
operator - The default operator (OR or AND).this, for method chaining.S analyzer(String analyzerName)
If this method is not called, the analyzer defined on the field will be used.
analyzerName - The name of the analyzer to use in the query for this predicate.this, for method chaining.S skipAnalysis()
this, for method chaining.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.