[ https://issues.apache.org/jira/browse/SOLR-1568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914321#action_12914321 ]
Yonik Seeley commented on SOLR-1568: ------------------------------------ I'm further confused by the following: {code} else if (ll[LONG] < 0.0 && ur[LONG] > 0.0) {//prime meridian (0 degrees {code} I don't see what's special about crossing the 0 deg longitude line here. It seems like the only special-case for longitude is if ll > ur, in which case you went over the +-180 line and need two ranges to cover that [ur TO -180] OR [ll TO 180] ? > 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: 3.1, 4.0 > > 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, 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. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org