public class Match extends AbstractMatch
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
phrase |
protected boolean |
phrasePrefix |
analyzer, boost, cutoffFrequency, fuzziness, maxExpansions, minShouldMatch, operatorAnd, prefixLength, rewrite, zeroTerms| Constructor and Description |
|---|
Match() |
| Modifier and Type | Method and 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.
|
getAnalyzer, getBoost, getCutoffFrequency, getFuzziness, getMaxExpansions, getMinShouldMatch, getPrefixLength, getRewrite, getZeroTerms, isOperatorAndprotected boolean phrase
protected boolean phrasePrefix
public Match()
public Match phrasePrefix()
public Match cutoffFrequency(double cutoffFrequency)
public Match maxExpansions(int maxExpansions)
public Match minShouldMatch(String minShouldMatch)
public boolean isPhrase()
public boolean isPhrasePrefix()
Copyright © 2016. All rights reserved.