org.elasticsearch.index.query.json
Class QueryStringJsonQueryParser

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.query.json.QueryStringJsonQueryParser
All Implemented Interfaces:
IndexComponent, JsonQueryParser

public class QueryStringJsonQueryParser
extends AbstractIndexComponent
implements JsonQueryParser


Field Summary
static java.lang.String NAME
           
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
QueryStringJsonQueryParser(Index index, Settings settings, AnalysisService analysisService)
           
 
Method Summary
 java.lang.String[] names()
           
 org.apache.lucene.search.Query parse(JsonQueryParseContext parseContext)
          Parses the into a query from the current json parser location.
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

QueryStringJsonQueryParser

@Inject
public QueryStringJsonQueryParser(Index index,
                                         @IndexSettings
                                         Settings settings,
                                         AnalysisService analysisService)
Method Detail

names

public java.lang.String[] names()
Specified by:
names in interface JsonQueryParser

parse

public org.apache.lucene.search.Query parse(JsonQueryParseContext parseContext)
                                     throws java.io.IOException,
                                            QueryParsingException
Description copied from interface: JsonQueryParser
Parses the into a query from the current json parser location. Will be at "START_OBJECT" location, and should end when the token is at the matching "END_OBJECT".

Specified by:
parse in interface JsonQueryParser
Throws:
java.io.IOException
QueryParsingException