public class GeoDistanceQueryParser extends Object implements QueryParser
{ "name.lat" : 1.1, "name.lon" : 1.2, }
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
static ParseField |
OPTIMIZE_BBOX_FIELD |
Constructor and Description |
---|
GeoDistanceQueryParser() |
Modifier and Type | Method and Description |
---|---|
String[] |
names()
The names this query parser is registered under.
|
org.apache.lucene.search.Query |
parse(QueryParseContext parseContext)
Parses the into a query from the current parser location.
|
public static final String NAME
public static final ParseField OPTIMIZE_BBOX_FIELD
@Inject public GeoDistanceQueryParser()
public String[] names()
QueryParser
names
in interface QueryParser
public org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParser
Returns null if this query should be ignored in the context of the DSL.
parse
in interface QueryParser
IOException
QueryParsingException
Copyright © 2009–2017. All rights reserved.