public class GeoPolygonQueryParser extends Object implements QueryParser
{
"pin.location" : {
"points" : [
{ "lat" : 12, "lon" : 40},
{}
]
}
}
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
POINTS |
| Constructor and Description |
|---|
GeoPolygonQueryParser() |
| 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 String POINTS
@Inject public GeoPolygonQueryParser()
public String[] names()
QueryParsernames in interface QueryParserpublic org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParserReturns null if this query should be ignored in the context of the DSL.
parse in interface QueryParserIOExceptionQueryParsingExceptionCopyright © 2009–2017. All rights reserved.