Might want to remove the *'s around that url
http://www.nsshutdown.com/projects/lucene/whitepaper/locallucene.htm

There's actually a download-able demo http://www.nsshutdown.com/solr-example_s1.3_ls0.2.tgz
start it up as you would a normal solr example
$ cd solr-example/apache-solr*/example
$ java -jar start.jar

Open up firefox (sorry demo ui was quick and dirty so firefox only) and go to http://localhost:8983/localcinema/
Make sure you specify localhost, there's a google maps key based upon the url's domain, and click 'Go' at the bottom of the page.

The demo comes with some sample data already indexed for the NY region, so have a play.

p.s after a little tidy up I'll be adding this to both lucene and solr's repositories if folks feel that it's a useful addition.

Thanks
Patrick

Ian Holsman wrote:
Have you guys seen Local Lucene ?
http://www.nsshutdown.com/projects/lucene/whitepaper/*locallucene*.htm

no need for mysql if you don't want too.

rgrds
Ian

Will Johnson wrote:
With the new/improved value source functions it should be pretty easy to
develop a new best practice.  You should be able to pull in the lat/lon
values from valuesource fields and then do your greater circle calculation.

- will

-----Original Message-----
From: Lance Norskog [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2007 3:15 PM
To: solr-user@lucene.apache.org
Subject: Geographical distance searching

It is a "best practice" to store the master copy of this data in a
relational database and use Solr/Lucene as a high-speed cache.
MySQL has a geographical database option, so maybe that is a better option
than Lucene indexing.

Lance

(P.s. please start new threads for new topics.)

-----Original Message-----
From: Sandeep Shetty [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2007 5:15 AM
To: 'solr-user@lucene.apache.org'
Subject: custom sorting

 
Hi Guys,

this question as been asked before but i was unable to find an answer thats good for me, so hope you guys can help again i am working on a website where we need to sort the results by distance from the location entered by the user. I have indexed the lat and long info for each record in solr and also i can get the lat and long of the location input by the user.
Previously we were using lucene to do this. by using the SortComparatorSource we could sort the documents returned by distance nicely. we are now switching over to lucene because of the features it provides, however i am not able to see a way to do this in Solr.

If someone can point me in the right direction i would be very grateful!

Thanks in advance,
Sandeep
   

This email is confidential and may also be privileged. If you are not the
intended recipient please notify us immediately by telephoning +44 (0)20
7452 5300 or email [EMAIL PROTECTED]. You should not copy it or use
it for any purpose nor disclose its contents to any other person. Touch
Local cannot accept liability for statements made which are clearly the
sender's own and are not made on behalf of the firm.

Touch Local Limited
Registered Number: 2885607
VAT Number: GB896112114
Cardinal Tower, 12 Farringdon Road, London EC1M 3NN
+44 (0)20 7452 5300


 



--
Patrick O'Leary

You see, wire telegraph is a kind of a very, very long cat. You pull his tail in New York and his head is meowing in Los Angeles.
 Do you understand this? 
And radio operates exactly the same way: you send signals here, they receive them there. The only difference is that there is no cat.
  - Albert Einstein
View Patrick O Leary's LinkedIn profileView Patrick O Leary's profile

Reply via email to