Hi, I've an application which is built with RoR and a search index in Lucene. I need to be able to integrate Lucene into the RoR app. What is the best way to do so ? I know that rjni is a ruby-java bridge but is it stable ? Also the update at http://thekode.net/ruby/rjni/ seems to indicate that it is no longer under development. Thanks. Ruban.
on 2005-11-19 10:52
on 2005-11-19 11:01
Hi, Ruban, as just posted in another thread: Have a look at ferret (http://ferret.davebalmain.com), which is a full ruby port of lucene. You'll find performance comparisons on http://blog.davebalmain.com. Dave is doing a great job!!! Also the article http://www.oreillynet.com/pub/wlg/8168 might interest you. regards Jan P.
on 2005-11-19 11:25
Just actually read a bit about Lucene, and found that there is a new port called Ferret which you may find interesting. Might be a more effective shift to move from Lucene to Ferrett then build a Ferrett gem to integrate into Rails. I am sure this would be well received open project in the Rails community :) Warmest regards, Nathan. -------------------------------------------------------------- Nathaniel S. H. Brown Toll Free 1.877.4.INIMIT Inimit Innovations Phone 604.724.6624 www.inimit.com Fax 604.444.9942
on 2005-11-19 11:34
Thanks Nathan and Jan for the info about Ferret. This definitely looks promising. But the problem is that the Lucene index is used by various other applications and is generated by a different application. I just read from it and so I can't really move the index to Ferret. But if I have to create one myself Ferret would definitely be in one of my preferences. Ruban Phukan
on 2005-11-19 12:02
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Nov 19, 2005, at 1:33 AM, Ruban Phukan wrote: > Thanks Nathan and Jan for the info about Ferret. This definitely > looks promising. > But the problem is that the Lucene index is used by various other > applications and is generated by a different application. I just > read from it and so I can't really move the index to Ferret. > > But if I have to create one myself Ferret would definitely be in > one of my preferences. Ferret uses Lucene indexes. You're in business. jeremy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iD8DBQFDfvgVAQHALep9HFYRAhrLAKDcSAfAlge6vDGfq/jNyLHTnT8pFACgzJVV /cPUCD3LE20VlfZXFDQz9nY= =gZRP -----END PGP SIGNATURE-----
on 2005-11-19 12:08
Ferret can read indexes generated by Lucene. See "How to use Ferret on an Existing Java Lucene Index" on http://ferret.davebalmain.com/trac/wiki/HowTos . By "full port", it means the whole enchilada is there, fully (?) compatible with Lucene. Actually, once the snazzy new C extensions are integrated, I'll be faster than the original Lucene. Now isn't that just peachy? Jacob
on 2005-11-19 15:57
Thanks everyone. These were all very useful info ... sorry for overlooking the "full port" part of Ferret earlier. Ferret rocks... eagerly waiting for the high speed C extensions. Ruban Phukan
on 2005-11-19 21:41
Have the developers considered using RubyInline to optimize Ferret? That might be better than writing a C module.