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

Chris A. Mattmann edited comment on SOLR-1568 at 3/11/10 4:28 AM:
------------------------------------------------------------------

OK, this guy compiles, and I tried to guess in a couple areas (e.g., please 
look at Haversine) where variables were missing. One nice thing you can take 
out of this is the normalize functions for lat and lon in DistanceUtils -- 
those will probably be generally useful.

I'll also look to bring some of this over to SIS, as we start to flesh it out.

I saw an error during unit tests in 
org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest, but it seems 
unrelated (so suspicious -- is this a real bug?):

{noformat}
[chipotle:solr/build/test-results] mattmann% more 
TEST-org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest.txt 
Testsuite: org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Testcase: testContentStreamRequest took 0.003 sec
        Caused an ERROR
Forked Java VM exited abnormally. Please note the time in the report does not re
flect the time until the VM exit.
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please n
ote the time in the report does not reflect the time until the VM exit.

[chipotle:solr/build/test-results] mattmann% 
{noformat}


      was (Author: chrismattmann):
    OK, this guy compiles, and I tried to guess in a couple areas (e.g., please 
look at Haversine) where variables were missing. One nice thing you can take 
out of this is the normalize functions for lat and lon in DistanceUtils -- 
those will probably be generally useful.

I'll also look to bring some of this over to SIS, as we start to flesh it out.

I saw an error during unit tests in 
org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest, but it seems 
unrelated (so suspicious -- is this a real bug?):

[chipotle:solr/build/test-results] mattmann% more 
TEST-org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest.txt 
Testsuite: org.apache.solr.client.solrj.embedded.SolrExampleEmbeddedTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

Testcase: testContentStreamRequest took 0.003 sec
        Caused an ERROR
Forked Java VM exited abnormally. Please note the time in the report does not re
flect the time until the VM exit.
junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please n
ote the time in the report does not reflect the time until the VM exit.

[chipotle:solr/build/test-results] mattmann% 

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