public interface MatchPredicateOptionsStep extends PredicateFinalStep, PredicateScoreStep<MatchPredicateOptionsStep>
| Modifier and Type | Method and Description |
|---|---|
MatchPredicateOptionsStep |
analyzer(String analyzerName)
Define an analyzer to use at query time to interpret the value to match.
|
default MatchPredicateOptionsStep |
fuzzy()
Enable fuzziness for this match predicate; only works for text fields.
|
default MatchPredicateOptionsStep |
fuzzy(int maxEditDistance)
Enable fuzziness for this match predicate; only works for text fields.
|
MatchPredicateOptionsStep |
fuzzy(int maxEditDistance,
int exactPrefixLength)
Enable fuzziness for this match predicate; only works for text fields.
|
MatchPredicateOptionsStep |
skipAnalysis()
Any analyzer and normalizer defined on any field will be ignored to interpret the value to match.
|
toPredicatewithConstantScoreboostedTodefault MatchPredicateOptionsStep fuzzy()
Fuzziness allows to match documents that do not contain the value to match, but a close value, for example with one letter that differs.
this, for method chaining.fuzzy(int, int)default MatchPredicateOptionsStep fuzzy(int maxEditDistance)
Fuzziness allows to match documents that do not contain the value to match, but a close value, for example with one letter that differs.
maxEditDistance - The maximum value of the edit distance, which defines how permissive the fuzzy predicate will be.this, for method chaining.fuzzy(int, int)MatchPredicateOptionsStep fuzzy(int maxEditDistance, int exactPrefixLength)
Fuzziness allows to match documents that do not contain the value to match, but a close value, for example with one letter that differs.
maxEditDistance - The maximum value of the edit distance, which defines how permissive the fuzzy predicate will be.
Roughly speaking, the edit distance is the number of changes between two terms: switching characters, removing them, ...
If zero, then fuzziness is completely disabled.
The other accepted values, 1 and 2, are increasingly fuzzy.
exactPrefixLength - Length of the prefix that has to match exactly, i.e. for which fuzziness will not be allowed.
A non-zero value is recommended if the index contains a large amount of distinct terms.
this, for method chaining.MatchPredicateOptionsStep 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.MatchPredicateOptionsStep 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.