True -- I found the geohash on a separate page. I was using it because it can allow for multiple points, and I was hoping to be ahead of the curve for allowing that feature for the data I'm managing.
I can roll back and use the LatLon type -- but then I'm still concerned about the bounding box giving results outside the specified range. Or would I be better off just indexing a lat & lon in separate fields, then making a normal numeric ranged search against them. -- Chris On Thu, Oct 27, 2011 at 3:09 PM, Yonik Seeley <yo...@lucidimagination.com> wrote: > On Thu, Oct 27, 2011 at 2:34 PM, Christopher Gross <cogr...@gmail.com> wrote: >> I'm using the geohash field to store points for my data. When I do a >> bounding box like: >> >> localhost:8080/solr/select?q=point:[-45,-80%20TO%20-24,-39] >> >> I get a data point that falls outside the box: (-73.0335833333333 >> -50.468155555) > > Is there a reason you're using geohash and not LatLonType? > The SpatialSearch page is really only applicable to LatLonType - other > methods are currently not supported or well tested (and geohash is not > mentioned on that page, except in reference to a "things in > development" page). > > -Yonik > http://www.lucidimagination.com > > >> The Spatial Search (http://wiki.apache.org/solr/SpatialSearch) page says: >> Exact distance calculations can be somewhat expensive and it can often >> make sense to use a quick approximation instead. The bbox filter is >> guaranteed to encompass all of the points of interest, but it may also >> include other points that are slightly outside of the required >> distance. >> >> I had sort of assumed that doing a ranged point search would just keep >> it to those points, but I'm getting items outside my requested range. >> >> Is there a way that I can only include items within the box via a >> configuration change? >> >> Worst case, I'll store a lat/long pair and do the ranged search >> myself, but then I'll have to reindex all my data and make some coding >> changes in order for it to work. >> >> Any input would be greatly appreciated! Thanks! >> >> -- Chris >> >