public interface SimpleQueryStringPredicateTerminalContext extends SearchPredicateTerminalContext, SearchPredicateScoreContext<SimpleQueryStringPredicateTerminalContext>
Allows to set options or to retrieve the predicate.
| Modifier and Type | Method and Description |
|---|---|
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.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.