Description
Given an index with spatial information (either as a geohash, SpatialTileField (see SOLR-1586) or just two lat/lon pairs), we should be able to pass in a filter query that takes in the field name, lat, lon and distance and produces an appropriate Filter (i.e. one that is aware of the underlying field type for use by Solr.
The interface could look like:
&fq={!sfilt dist=20}location:49.32,-79.0
or it could be:
&fq={!sfilt lat=49.32 lat=-79.0 f=location dist=20}
or:
&fq={!sfilt p=49.32,-79.0 f=location dist=20}
or:
&fq={!sfilt lat=49.32,-79.0 fl=lat,lon dist=20}
Attachments
Attachments
Issue Links
- depends upon
-
LUCENE-2367 CartesianPolyFilterBuilder has problems around the poles
- Resolved
- is blocked by
-
SOLR-2125 Spatial filter is not accurate
- Closed
-
LUCENE-1921 Absurdly large radius (miles) search fails to include entire earth
- Closed
-
SOLR-1131 Allow a single field type to index multiple fields
- Closed
-
SOLR-1586 Create Spatial Point FieldTypes
- Closed
- is depended upon by
-
SOLR-773 Incorporate Local Lucene/Solr
- Closed
- relates to
-
LUCENE-2081 CartesianShapeFilter improvements
- Resolved
-
LUCENE-2139 Cleanup and Improvement of Spatial Contrib
- Closed