[
https://issues.apache.org/jira/browse/SOLR-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grant Ingersoll updated SOLR-1568:
----------------------------------
Attachment: SOLR-1568.patch
A totally NON WORKING patch. The only thing really defined is the interface,
per earlier discussions. I doubt it even compiles. I'm putting it up here for
something to talk about eventually.
I'd like to achieve at least 2 things:
1. Good defaults for the filters based on the FieldType
2. Pluggable implementations for the filters based on the FieldType. I've seen
enough of these now that just hardcoding bounding box to the PointType is not
sufficient. I think we need a bit looser coupling. I have that now as an
abstract class called SpatialFilterable (will rename to SpatialFilter) which my
plan is to have the QParserPlugin load up from the Solr Config. This way, if
people want to implement there own, they can
As I said, this totally NON WORKING.
> Implement Spatial Filter
> ------------------------
>
> Key: SOLR-1568
> URL: https://issues.apache.org/jira/browse/SOLR-1568
> Project: Solr
> Issue Type: New Feature
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Fix For: 1.5
>
> Attachments: CartesianTierQParserPlugin.java, SOLR-1568.patch
>
>
> 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:
> {code}
> &fq={!sfilt dist=20}location:49.32,-79.0
> {code}
> or it could be:
> {code}
> &fq={!sfilt lat=49.32 lat=-79.0 f=location dist=20}
> {code}
> or:
> {code}
> &fq={!sfilt p=49.32,-79.0 f=location dist=20}
> {code}
> or:
> {code}
> &fq={!sfilt lat=49.32,-79.0 fl=lat,lon dist=20}
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.