public interface SimpleQueryStringPredicateTerminalContext extends SearchPredicateTerminalContext, SearchPredicateScoreContext<SimpleQueryStringPredicateTerminalContext>
Allows to set options or to retrieve the predicate.
| Modifier and Type | Method and Description |
|---|---|
SimpleQueryStringPredicateTerminalContext |
analyzer(String analyzerName)
Define an analyzer to use at query time to interpret the value to match.
|
SimpleQueryStringPredicateTerminalContext |
skipAnalysis()
Any analyzer or normalizer defined on any field will be ignored to interpret the value to match.
|
SimpleQueryStringPredicateTerminalContext |
withAndAsDefaultOperator()
Define the default operator as AND.
|
toPredicatewithConstantScoreboostedToSimpleQueryStringPredicateTerminalContext withAndAsDefaultOperator()
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 will change the default behavior, making document match if all terms mentioned in the query string are present in the document.
this, for method chaining.SimpleQueryStringPredicateTerminalContext 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.SimpleQueryStringPredicateTerminalContext 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.