- java.lang.Object
-
- io.ebean.search.AbstractMatch
-
- io.ebean.search.Match
-
public class Match extends AbstractMatch
Options for the text match expression.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanphraseprotected booleanphrasePrefix-
Fields inherited from class io.ebean.search.AbstractMatch
analyzer, boost, cutoffFrequency, fuzziness, maxExpansions, minShouldMatch, operatorAnd, prefixLength, rewrite, zeroTerms
-
-
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
-
-
-
-
Method Detail
-
phrase
public Match phrase()
Set this to be a "Phrase" type expression.
-
phrasePrefix
public Match phrasePrefix()
Set this to be a "Phrase Prefix" type expression.
-
opAnd
public Match opAnd()
Use the AND operator (rather than OR).
-
opOr
public Match opOr()
Use the OR operator (rather than AND).
-
cutoffFrequency
public Match cutoffFrequency(double cutoffFrequency)
Set the cutoff frequency.
-
maxExpansions
public Match maxExpansions(int maxExpansions)
Set the max expansions (for phrase prefix only).
-
boost
public Match boost(double boost)
Set the boost.
-
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.
-
-