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 Match
analyzer(String analyzer)
Set the Analyzer to use for this expression.Match
boost(double boost)
Set the boost.Match
cutoffFrequency(double cutoffFrequency)
Set the cutoff frequency.boolean
isPhrase()
Return true if this is a phrase query.boolean
isPhrasePrefix()
Return true if this is a phrase prefix query.Match
maxExpansions(int maxExpansions)
Set the max expansions (for phrase prefix only).Match
minShouldMatch(String minShouldMatch)
Set the rewrite to use.Match
opAnd()
Use the AND operator (rather than OR).Match
opOr()
Use the OR operator (rather than AND).Match
phrase()
Set this to be a "Phrase" type expression.Match
phrasePrefix()
Set this to be a "Phrase Prefix" type expression.Match
rewrite(String rewrite)
Set the rewrite to use.Match
zeroTerms(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.
-
-