Package org.elasticsearch.index.search
Class MatchQueryParser
java.lang.Object
org.elasticsearch.index.search.MatchQueryParser
- Direct Known Subclasses:
MultiMatchQueryParser
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.lucene.analysis.Analyzerprotected booleanprotected Floatprotected SearchExecutionContextstatic booleanstatic intstatic ZeroTermsQueryOptionprotected booleanprotected Fuzzinessprotected intprotected org.apache.lucene.search.MultiTermQuery.RewriteMethodprotected booleanprotected intprotected org.apache.lucene.search.BooleanClause.Occurprotected intprotected org.apache.lucene.search.spans.SpanMultiTermQueryWrapper.SpanRewriteMethodprotected booleanprotected ZeroTermsQueryOption -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.analysis.AnalyzergetAnalyzer(MappedFieldType fieldType, boolean quoted)org.apache.lucene.search.Queryparse(MatchQueryParser.Type type, String fieldName, Object value)voidsetAnalyzer(String analyzerName)voidsetAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)voidsetAutoGenerateSynonymsPhraseQuery(boolean enabled)voidsetCommonTermsCutoff(Float cutoff)Deprecated.voidsetEnablePositionIncrements(boolean enablePositionIncrements)voidsetFuzziness(Fuzziness fuzziness)voidsetFuzzyPrefixLength(int fuzzyPrefixLength)voidsetFuzzyRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod)voidsetLenient(boolean lenient)voidsetMaxExpansions(int maxExpansions)voidsetOccur(org.apache.lucene.search.BooleanClause.Occur occur)voidsetPhraseSlop(int phraseSlop)voidsetTranspositions(boolean transpositions)voidsetZeroTermsQuery(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