org.elasticsearch.index.search
Class MatchQuery

java.lang.Object
  extended by org.elasticsearch.index.search.MatchQuery
Direct Known Subclasses:
MultiMatchQuery

public class MatchQuery
extends Object


Nested Class Summary
static class MatchQuery.Type
           
 
Field Summary
protected  String analyzer
           
protected  boolean enablePositionIncrements
           
protected  String fuzziness
           
protected  int fuzzyPrefixLength
           
protected  org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod
           
protected  boolean lenient
           
protected  int maxExpansions
           
protected  org.apache.lucene.search.BooleanClause.Occur occur
           
protected  QueryParseContext parseContext
           
protected  int phraseSlop
           
protected  org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod
           
 
Constructor Summary
MatchQuery(QueryParseContext parseContext)
           
 
Method Summary
 org.apache.lucene.search.Query parse(MatchQuery.Type type, String fieldName, String text)
           
 void setAnalyzer(String analyzer)
           
 void setEnablePositionIncrements(boolean enablePositionIncrements)
           
 void setFuzziness(String 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 setRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parseContext

protected final QueryParseContext parseContext

analyzer

protected String analyzer

occur

protected org.apache.lucene.search.BooleanClause.Occur occur

enablePositionIncrements

protected boolean enablePositionIncrements

phraseSlop

protected int phraseSlop

fuzziness

protected String fuzziness

fuzzyPrefixLength

protected int fuzzyPrefixLength

maxExpansions

protected int maxExpansions

rewriteMethod

protected org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod

fuzzyRewriteMethod

protected org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod

lenient

protected boolean lenient
Constructor Detail

MatchQuery

public MatchQuery(QueryParseContext parseContext)
Method Detail

setAnalyzer

public void setAnalyzer(String analyzer)

setOccur

public void setOccur(org.apache.lucene.search.BooleanClause.Occur occur)

setEnablePositionIncrements

public void setEnablePositionIncrements(boolean enablePositionIncrements)

setPhraseSlop

public void setPhraseSlop(int phraseSlop)

setFuzziness

public void setFuzziness(String fuzziness)

setFuzzyPrefixLength

public void setFuzzyPrefixLength(int fuzzyPrefixLength)

setMaxExpansions

public void setMaxExpansions(int maxExpansions)

setRewriteMethod

public void setRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod rewriteMethod)

setFuzzyRewriteMethod

public void setFuzzyRewriteMethod(org.apache.lucene.search.MultiTermQuery.RewriteMethod fuzzyRewriteMethod)

setLenient

public void setLenient(boolean lenient)

parse

public org.apache.lucene.search.Query parse(MatchQuery.Type type,
                                            String fieldName,
                                            String text)


Copyright © 2009-2012. All Rights Reserved.