Package io.ebean.search
Class MultiMatch
- java.lang.Object
-
- io.ebean.search.AbstractMatch
-
- io.ebean.search.MultiMatch
-
public class MultiMatch extends AbstractMatch
Options for the text match expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiMatch.TypeThe MultiMatch type.
-
Constructor Summary
Constructors Constructor Description MultiMatch(String... fields)Construct with a set of fields.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiMatchanalyzer(String analyzer)Set the Analyzer to use for this expression.MultiMatchboost(double boost)Set the boost.MultiMatchcutoffFrequency(double cutoffFrequency)Set the cutoff frequency.static MultiMatchfields(String... fields)Create with the given fields.String[]getFields()Return the fields to search.doublegetTieBreaker()Return the tie breaker.MultiMatch.TypegetType()Return the type.MultiMatchmaxExpansions(int maxExpansions)Set the max expansions (for phrase prefix only).MultiMatchminShouldMatch(String minShouldMatch)Set the minimum should match value.MultiMatchopAnd()Use the AND operator (rather than OR).MultiMatchopOr()Use the OR operator (rather than AND).MultiMatchrewrite(String rewrite)Set the rewrite to use.MultiMatchtieBreaker(double tieBreaker)Set the tieBreaker to use.MultiMatchtype(MultiMatch.Type type)Set the type of query.MultiMatchzeroTerms(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
-
MultiMatch
public MultiMatch(String... fields)
Construct with a set of fields.
-
-
Method Detail
-
fields
public static MultiMatch fields(String... fields)
Create with the given fields.
-
type
public MultiMatch type(MultiMatch.Type type)
Set the type of query.
-
tieBreaker
public MultiMatch tieBreaker(double tieBreaker)
Set the tieBreaker to use.
-
opAnd
public MultiMatch opAnd()
Use the AND operator (rather than OR).
-
opOr
public MultiMatch opOr()
Use the OR operator (rather than AND).
-
minShouldMatch
public MultiMatch minShouldMatch(String minShouldMatch)
Set the minimum should match value.
-
boost
public MultiMatch boost(double boost)
Set the boost.
-
zeroTerms
public MultiMatch zeroTerms(String zeroTerms)
Set the zero terms.
-
cutoffFrequency
public MultiMatch cutoffFrequency(double cutoffFrequency)
Set the cutoff frequency.
-
maxExpansions
public MultiMatch maxExpansions(int maxExpansions)
Set the max expansions (for phrase prefix only).
-
analyzer
public MultiMatch analyzer(String analyzer)
Set the Analyzer to use for this expression.
-
rewrite
public MultiMatch rewrite(String rewrite)
Set the rewrite to use.
-
getType
public MultiMatch.Type getType()
Return the type.
-
getTieBreaker
public double getTieBreaker()
Return the tie breaker.
-
-