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

Brainski edited comment on SOLR-1568 at 4/13/10 8:51 AM:
---------------------------------------------------------

Hi

I tested the last patch. I was able to apply it to the latest dev subversion 
check out and I was able to recompile the whole thing (kind of difficult for a 
non java programmer *g*).

Finally I modified my schema.xml and was able to use the sfilt in my range 
query. Its working quite well with my data.

My wishes:

Please update the wiki according to the changes:
http://wiki.apache.org/solr/SpatialSearch

*strong*Under Filtering:
fq={!sfilt fl=store_lat_lon units=km}&pt=47.508249,8.731969&d=12

The units parameter and the meas parameter is not explained. 
The dist parameter is renamed to d

*strong*Under Scoring:
An example for a boost function is the following. Please add this also to the 
boost functions, because it took me hours to find out the correct syntax 
without whitespaces.
qt=dismax&bf=recip(2,store,vector(40.7143,-74.006)),1,1,1)^30



      was (Author: brainski):
    Hi

I tested the last patch. I was able to apply it to the latest dev subversion 
check out and I was able to recompile the whole thing (kind of difficult for a 
non java programmer *g*).

Finally I modified my schema.xml and was able to use the sfilt in my range 
query. Its working quite well with my data.

My wishes:

Please update the wiki according to the changes:
http://wiki.apache.org/solr/SpatialSearch

*strong*Under Filtering:*strong*
fq={!sfilt fl=store_lat_lon units=km}&pt=47.508249,8.731969&d=12

The units parameter and the meas parameter is not explained. 
The dist parameter is renamed to d

*strong*Under Scoring:*strong*
An example for a boost function is the following. Please add this also to the 
boost functions, because it took me hours to find out the correct syntax 
without whitespaces.
qt=dismax&bf=recip(2,store,vector(40.7143,-74.006)),1,1,1)^30


  
> 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.Mattmann.031010.patch.txt, SOLR-1568.patch, SOLR-1568.patch, 
> SOLR-1568.patch, SOLR-1568.patch, SOLR-1568.patch, SOLR-1568.patch, 
> 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.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to