Package org.elasticsearch.index.search
Class MatchQueryParser
java.lang.Object
org.elasticsearch.index.search.MatchQueryParser
- Direct Known Subclasses:
MultiMatchQueryParser
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.apache.lucene.analysis.Analyzer
protected boolean
protected Float
protected SearchExecutionContext
static boolean
static int
static ZeroTermsQueryOption
protected boolean
protected Fuzziness
protected int
protected org.apache.lucene.search.MultiTermQuery.RewriteMethod
protected boolean
protected int
protected org.apache.lucene.search.BooleanClause.Occur
protected int
protected org.apache.lucene.search.spans.SpanMultiTermQueryWrapper.SpanRewriteMethod
protected boolean
protected ZeroTermsQueryOption
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.analysis.Analyzer
getAnalyzer(MappedFieldType fieldType, boolean quoted)
org.apache.lucene.search.Query
parse(MatchQueryParser.Type type, String fieldName, Object value)
void
setAnalyzer(String analyzerName)
void
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
void
setAutoGenerateSynonymsPhraseQuery(boolean enabled)
void
setCommonTermsCutoff(Float cutoff)
Deprecated.void
setEnablePositionIncrements(boolean enablePositionIncrements)
void
setFuzziness(Fuzziness fuzziness)
void
setFuzzyPrefixLength(int fuzzyPrefixLength)
void
setFuzzyRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod)
void
setLenient(boolean lenient)
void
setMaxExpansions(int maxExpansions)
void
setOccur(org.apache.lucene.search.BooleanClause.Occur occur)
void
setPhraseSlop(int phraseSlop)
void
setTranspositions(boolean transpositions)
void
setZeroTermsQuery(ZeroTermsQueryOption zeroTermsQuery)
-
Field Details
-
DEFAULT_PHRASE_SLOP
public static final int DEFAULT_PHRASE_SLOP- See Also:
- Constant Field Values
-
DEFAULT_LENIENCY
public static final boolean DEFAULT_LENIENCY- See Also:
- Constant Field Values
-
DEFAULT_ZERO_TERMS_QUERY
-
context
-
analyzer
protected org.apache.lucene.analysis.Analyzer analyzer -
occur
protected org.apache.lucene.search.BooleanClause.Occur occur -
enablePositionIncrements
protected boolean enablePositionIncrements -
phraseSlop
protected int phraseSlop -
fuzziness
-
fuzzyPrefixLength
protected int fuzzyPrefixLength -
maxExpansions
protected int maxExpansions -
spanRewriteMethod
protected org.apache.lucene.search.spans.SpanMultiTermQueryWrapper.SpanRewriteMethod spanRewriteMethod -
transpositions
protected boolean transpositions -
fuzzyRewriteMethod
protected org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod -
lenient
protected boolean lenient -
zeroTermsQuery
-
commonTermsCutoff
-
autoGenerateSynonymsPhraseQuery
protected boolean autoGenerateSynonymsPhraseQuery
-
-
Constructor Details
-
MatchQueryParser
-
-
Method Details
-
setAnalyzer
-
setAnalyzer
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) -
setOccur
public void setOccur(org.apache.lucene.search.BooleanClause.Occur occur) -
setCommonTermsCutoff
Deprecated.SeesetCommonTermsCutoff(Float)
for more details -
setEnablePositionIncrements
public void setEnablePositionIncrements(boolean enablePositionIncrements) -
setPhraseSlop
public void setPhraseSlop(int phraseSlop) -
setFuzziness
-
setFuzzyPrefixLength
public void setFuzzyPrefixLength(int fuzzyPrefixLength) -
setMaxExpansions
public void setMaxExpansions(int maxExpansions) -
setTranspositions
public void setTranspositions(boolean transpositions) -
setFuzzyRewriteMethod
public void setFuzzyRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod) -
setLenient
public void setLenient(boolean lenient) -
setZeroTermsQuery
-
setAutoGenerateSynonymsPhraseQuery
public void setAutoGenerateSynonymsPhraseQuery(boolean enabled) -
parse
public org.apache.lucene.search.Query parse(MatchQueryParser.Type type, String fieldName, Object value) throws IOException- Throws:
IOException
-
getAnalyzer
protected org.apache.lucene.analysis.Analyzer getAnalyzer(MappedFieldType fieldType, boolean quoted)
-
setCommonTermsCutoff(Float)
for more details