public class GeoShapeQueryParser extends Object implements QueryParser
Modifier and Type | Class and Description |
---|---|
static class |
GeoShapeQueryParser.DEFAULTS |
Constructor and Description |
---|
GeoShapeQueryParser() |
Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.spatial.query.SpatialArgs |
getArgs(ShapeBuilder shape,
ShapeRelation relation) |
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.
|
void |
setFetchService(ShapeFetchService fetchService) |
public static final String NAME
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
@Inject(optional=true) public void setFetchService(@Nullable ShapeFetchService fetchService)
public static org.apache.lucene.spatial.query.SpatialArgs getArgs(ShapeBuilder shape, ShapeRelation relation)
Copyright © 2009–2016. All rights reserved.