org.elasticsearch.index.query.xcontent
Class GeoPolygonFilterParser
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.query.xcontent.GeoPolygonFilterParser
- All Implemented Interfaces:
- IndexComponent, XContentFilterParser
public class GeoPolygonFilterParser
- extends AbstractIndexComponent
- implements XContentFilterParser
{
"pin.location" : {
"points" : [
{ "lat" : 12, "lon" : 40},
{}
]
}
}
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
java.lang.String[] |
names()
The names this filter is registered under. |
org.apache.lucene.search.Filter |
parse(QueryParseContext parseContext)
Parses the into a filter from the current parser location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
GeoPolygonFilterParser
@Inject
public GeoPolygonFilterParser(Index index,
@IndexSettings
Settings indexSettings)
names
public java.lang.String[] names()
- Description copied from interface:
XContentFilterParser
- The names this filter is registered under.
- Specified by:
names
in interface XContentFilterParser
parse
public org.apache.lucene.search.Filter parse(QueryParseContext parseContext)
throws java.io.IOException,
QueryParsingException
- Description copied from interface:
XContentFilterParser
- Parses the into a filter from the current 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 XContentFilterParser
- Throws:
java.io.IOException
QueryParsingException