Yeah, there's an open issue in Solr for this one. It's non-trivial and I would love to have it too.
On Feb 24, 2010, at 3:23 PM, Marcelo Ochoa wrote: >> What would it be? > An extended query parser syntax > (http://lucene.apache.org/java/2_9_1/queryparsersyntax.html) including > geo-location search. > For example: > hsin (great circle): name:Minneapolis > AND _val_:"recip(hsin(0.78, -1.6, lat_rad, lon_rad, 3963.205), 1, 1, > 0)"^100 > dist (Euclidean, Manhattan, p-norm): name:Minneapolis AND > _val_:"recip(dist(2, lat, lon, 44.794, -93.2696), 1, 1, 0)"^100 > sqedist (Squared Euclidean): name:Minneapolis AND > _val_:"recip(sqedist(lat, lon, 44.794, -93.2696), 1, 1, 0)"^100 > ghhdist (Geohash Haversine): name:Minneapolis AND > _val_:"recip (ghhsin(geohash(44.79, -93), geohash, 3963.205), 1, 1, > 0)"^100 > source: > http://www.ibm.com/developerworks/java/library/j-spatial/index.html > Best regards, Marcelo. > -- > Marcelo F. Ochoa > http://marceloochoa.blogspot.com/ > http://marcelo.ochoa.googlepages.com/home > ______________ > Want to integrate Lucene and Oracle? > http://marceloochoa.blogspot.com/2007/09/running-lucene-inside-your-oracle-jvm.html > Is Oracle 11g REST ready? > http://marceloochoa.blogspot.com/2008/02/is-oracle-11g-rest-ready.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > -------------------------- Grant Ingersoll http://www.lucidimagination.com/ Search the Lucene ecosystem using Solr/Lucene: http://www.lucidimagination.com/search --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org