public class Match extends AbstractMatch
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, isOperatorAnd
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 © 2019. All rights reserved.