You know, if there were some sort of hexagonal/pentagonal, soccer ball coordinate system for the Earth, all you'd need is an entry's distance to each of the 6/5 facets of the cell it was in, the distance between any two facets, and the distance to the endpoint to all it's facets. A giant table of precomputed distances, or some numbering system of coordinates that automatically gave the two facets and the distance between the faces would be even better.
Then just look up the distances and add them. Still waiting for the coordinate system though :-). If one could get it to 10 meters resolution, wow. Dennis Gearon Signature Warning ---------------- EARTH has a Right To Life, otherwise we all die. Read 'Hot, Flat, and Crowded' Laugh at http://www.yert.com/film.php --- On Mon, 9/20/10, Markus Jelsma <markus.jel...@buyways.nl> wrote: > From: Markus Jelsma <markus.jel...@buyways.nl> > Subject: RE: Re: Calculating distances in Solr using longitude latitude > To: solr-user@lucene.apache.org > Date: Monday, September 20, 2010, 1:00 PM > Hi, > > > > In the early Solr 1.3 times we had an index with > leisure-time objects that included geographical coordinates. > Based on certain conditions we had to display a specific > list of nearby objects. We simply implemented some Great > Circle calculations such as the distance between points [1] > and aggregated nearby objects and sent then to our index. > The drawback is that for each addition to the index, you'd > have to recalculate all other nearby objects, that takes a > while. The good thing is, in production, the system isn't > slowed down by these calculations so it's very fast. > > > > [1]: http://williams.best.vwh.net/avform.htm#Dist > > > > Cheers, > > -----Original message----- > From: Dennis Gearon <gear...@sbcglobal.net> > Sent: Mon 20-09-2010 19:42 > To: solr-user@lucene.apache.org; > > Subject: Re: Calculating distances in Solr using longitude > latitude > > Hmmm, > I am about to put a engineer on our search engine > requirements with the assumption that latitude/longitude is > available in the current release of Solr, (not knowing what > that is). > > I have been partitioning the whole Solr thing to > him,except enough info for me to understand and interface to > his work. Sooooooooo, I don't have that answer. > > Can someone else answer him? > > > Dennis Gearon > > Signature Warning > ---------------- > EARTH has a Right To Life, > otherwise we all die. > > Read 'Hot, Flat, and Crowded' > Laugh at http://www.yert.com/film.php > > > --- On Mon, 9/20/10, PeterKerk <vettepa...@hotmail.com> > wrote: > > > From: PeterKerk <vettepa...@hotmail.com> > > Subject: Re: Calculating distances in Solr using > longitude latitude > > To: solr-user@lucene.apache.org > > Date: Monday, September 20, 2010, 6:53 AM > > > > Hi Dennis, > > > > Good suggestion, but I see that most of that is Solr > 4.0 > > functionality, > > which has not been released yet. > > How can I still use the longitude latitude > functionality > > (LatLonType)? > > > > Thanks! > > -- > > View this message in context: > > http://lucene.472066.n3.nabble.com/Calculating-distances-in-Solr-using-longitude-latitude-tp1524297p1529097.html > > Sent from the Solr - User mailing list archive at > > Nabble.com. > > >