Package io.ebean.search
Class Match
- java.lang.Object
-
- io.ebean.search.AbstractMatch
-
- io.ebean.search.Match
-
public class Match extends AbstractMatch
Options for the text match expression.
-
-
Constructor Summary
Constructors Constructor Description Match()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matchanalyzer(String analyzer)Set the Analyzer to use for this expression.Matchboost(double boost)Set the boost.MatchcutoffFrequency(double cutoffFrequency)Set the cutoff frequency.booleanisPhrase()Return true if this is a phrase query.booleanisPhrasePrefix()Return true if this is a phrase prefix query.MatchmaxExpansions(int maxExpansions)Set the max expansions (for phrase prefix only).MatchminShouldMatch(String minShouldMatch)Set the rewrite to use.MatchopAnd()Use the AND operator (rather than OR).MatchopOr()Use the OR operator (rather than AND).Matchphrase()Set this to be a "Phrase" type expression.MatchphrasePrefix()Set this to be a "Phrase Prefix" type expression.Matchrewrite(String rewrite)Set the rewrite to use.MatchzeroTerms(String zeroTerms)Set the zero terms.-
Methods inherited from class io.ebean.search.AbstractMatch
getAnalyzer, getBoost, getCutoffFrequency, getFuzziness, getMaxExpansions, getMinShouldMatch, getPrefixLength, getRewrite, getZeroTerms, isOperatorAnd
-
-
-
-
Constructor Detail
-
Match
public Match()
-
-
Method Detail
-
phrasePrefix
public Match phrasePrefix()
Set this to be a "Phrase Prefix" type expression.
-
cutoffFrequency
public Match cutoffFrequency(double cutoffFrequency)
Set the cutoff frequency.
-
maxExpansions
public Match maxExpansions(int maxExpansions)
Set the max expansions (for phrase prefix only).
-
minShouldMatch
public Match minShouldMatch(String minShouldMatch)
Set the rewrite to use.
-
isPhrase
public boolean isPhrase()
Return true if this is a phrase query.
-
isPhrasePrefix
public boolean isPhrasePrefix()
Return true if this is a phrase prefix query.
-
-