[ 
https://issues.apache.org/jira/browse/SOLR-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796485#action_12796485
 ] 

Grant Ingersoll commented on SOLR-1568:
---------------------------------------

For those who only want pure radial search, it is the only way, scalable or 
not, unless I'm missing something.  

As I see, it there are several options for filtering that already work out of 
the box and that someone may want to use:
1. Radial distance as above
2. Range query (i.e. bounding box)

The one remaining that isn't implemented is the tile stuff.  

Now, obviously, we can provide tools to make these slightly easier to consume.  
I've already prototyped most of it, but in doing so, I just couldn't shake the 
sense that it is a waste of time for anything but the tile stuff and that it 
hides too much in terms of what the tradeoffs are going to be.  I just think it 
is easy enough for an app designer to use their existing toolbox (#1 and #2) 
while throwing in one more lightweight, easy to use new tool (tile support.)

> 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
>
>
> 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.

Reply via email to