public class SpatialFilterQParserPlugin extends QParserPlugin
The field must implement SpatialQueryable
All units are in Kilometers
Syntax:
{!geofilt sfield=<location_field> pt=<lat,lon> d=<distance>}
Parameters:
Examples:
fq={!geofilt sfield=store pt=10.312,-20.556 d=3.5}
fq={!geofilt sfield=store}&pt=10.312,-20&d=3.5
fq={!geofilt}&sfield=store&pt=10.312,-20&d=3.5
Note: The geofilt for LatLonType is capable of also producing scores equal to the computed distance from the point to the field, making it useful as a component of the main query or a boosting query.
SolrInfoMBean.Category, SolrInfoMBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT_QTYPE, standardPlugins
Constructor and Description |
---|
SpatialFilterQParserPlugin() |
Modifier and Type | Method and Description |
---|---|
QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion, init
public static final String NAME
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.