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 class
MultiMatch.Type
The 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 MultiMatch
analyzer(String analyzer)
Set the Analyzer to use for this expression.MultiMatch
boost(double boost)
Set the boost.MultiMatch
cutoffFrequency(double cutoffFrequency)
Set the cutoff frequency.static MultiMatch
fields(String... fields)
Create with the given fields.String[]
getFields()
Return the fields to search.double
getTieBreaker()
Return the tie breaker.MultiMatch.Type
getType()
Return the type.MultiMatch
maxExpansions(int maxExpansions)
Set the max expansions (for phrase prefix only).MultiMatch
minShouldMatch(String minShouldMatch)
Set the minimum should match value.MultiMatch
opAnd()
Use the AND operator (rather than OR).MultiMatch
opOr()
Use the OR operator (rather than AND).MultiMatch
rewrite(String rewrite)
Set the rewrite to use.MultiMatch
tieBreaker(double tieBreaker)
Set the tieBreaker to use.MultiMatch
type(MultiMatch.Type type)
Set the type of query.MultiMatch
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
-
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.
-
-