Sorting on distance from a long/lat

2006-11-21 Thread spamsucks
I am successfully able to search for "nearbys" given a longitude and a latitude. The basic summary of how I do this is that I add 1000 to the long/lat values and use a RangeFilter in my query. In my display results, I display the results ordered by distance from the original long/lat. What I

Re: Sorting on distance from a long/lat

2006-11-21 Thread Chris Hostetter
rg : Cc: spamsucks <[EMAIL PROTECTED]> : Subject: Re: Sorting on distance from a long/lat : : Hi, : : I apologize if this is slightly off topic. I have not implemented this, but : the idea came to me after reading another post about measuring distance in : lucene. It may be completely impr

Re: Sorting on distance from a long/lat

2006-11-21 Thread Dennis Watson
800 > : From: Dennis Watson <[EMAIL PROTECTED]> > : Reply-To: java-user@lucene.apache.org > : To: java-user@lucene.apache.org > : Cc: spamsucks <[EMAIL PROTECTED]> > : Subject: Re: Sorting on distance from a long/lat > : > : Hi, > : > : I apologize if this is sligh

Re: Sorting on distance from a long/lat

2006-11-21 Thread Dennis Watson
Hi, I apologize if this is slightly off topic. I have not implemented this, but the idea came to me after reading another post about measuring distance in lucene. It may be completely impractical, however it seems it COULD work at least if the area to be indexed could be constrained. What if