public class MultiMatch extends AbstractMatch
Modifier and Type | Class and Description |
---|---|
static class |
MultiMatch.Type
The MultiMatch type.
|
Constructor and Description |
---|
MultiMatch(String... fields)
Construct with a set of fields.
|
Modifier and Type | Method and 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.
|
getAnalyzer, getBoost, getCutoffFrequency, getFuzziness, getMaxExpansions, getMinShouldMatch, getPrefixLength, getRewrite, getZeroTerms, isOperatorAnd
public MultiMatch(String... fields)
public static MultiMatch fields(String... fields)
public MultiMatch type(MultiMatch.Type type)
public MultiMatch tieBreaker(double tieBreaker)
public MultiMatch opAnd()
public MultiMatch opOr()
public MultiMatch minShouldMatch(String minShouldMatch)
public MultiMatch boost(double boost)
public MultiMatch zeroTerms(String zeroTerms)
public MultiMatch cutoffFrequency(double cutoffFrequency)
public MultiMatch maxExpansions(int maxExpansions)
public MultiMatch analyzer(String analyzer)
public MultiMatch rewrite(String rewrite)
public MultiMatch.Type getType()
public double getTieBreaker()
Copyright © 2019. All rights reserved.