Re: Spatial Solr 3.1: filter by viewport
Hi Zac. The syntax in your example is odd, I didn't know you could do that. Except it doesn't quite work as you show. You could file a bug. As an alternative that might suffice, use the point-radius arguments in which Solr will take the minimum-bounding-box for. See {!bbox} http://wiki.apache.org/solr/SpatialSearch#bbox_-_Bounding-box_filter You can expect to see great improvements in geospatial for 4.0. ~ David On May 23, 2011, at 12:33 AM, Zac Smith wrote: How would I specify a filter that covered a rectangular viewport? I have 4 coordinate points for the corners and I want to return everything inside that area. My first naive attempt was this: q=*:*fq=coords:[44.119141,-125.948638 TO 47.931066,-111.029205] At first this seems to work OK, except where the viewport crosses over a point where the longitude goes from a positive value to a negative value. Thanks Zac
RE: Spatial Solr 3.1: filter by viewport
It looks like someone asked this question a few months ago and didn't get an answer either ... http://lucene.472066.n3.nabble.com/Spatial-Solr-Representing-a-bounding-box-and-searching-for-it-tc2447262.html#none I really thought this would be a pretty simple question to answer? Is there no way to specify the exact coordinates of the bounding box - http://wiki.apache.org/solr/SpatialSearch#bbox_-_Bounding-box_filter ?? Zac -Original Message- From: Zac Smith [mailto:z...@trinkit.com] Sent: Sunday, May 22, 2011 9:34 PM To: solr-user@lucene.apache.org Subject: Spatial Solr 3.1: filter by viewport How would I specify a filter that covered a rectangular viewport? I have 4 coordinate points for the corners and I want to return everything inside that area. My first naive attempt was this: q=*:*fq=coords:[44.119141,-125.948638 TO 47.931066,-111.029205] At first this seems to work OK, except where the viewport crosses over a point where the longitude goes from a positive value to a negative value. Thanks Zac