Ruby/RoR - Lucene integration question ??

R

Ruban Phukan

--0-1191088541-1132390138=:30953
Content-Type: text/plain; charset=us-ascii

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.


--0-1191088541-1132390138=:30953--
 
M

Mauricio Fernández

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.

rjni is dead.
Try rjb:

http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge
http://raa.ruby-lang.org/project/rjb

You can find an excellent review of Ruby-Java bridges and related tools at
http://jp.rubyist.net/magazine/?0003-RLR (Japanese).
 
N

Nathaniel S. H. Brown

Just actually read a bit about Lucene after your post, and found that =
there
is a new port called Ferret which you may find interesting.=20

Seems CDBaby went down this same path,
http://www.oreillynet.com/pub/wlg/8168.

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 :)

http://ferret.davebalmain.com/trac

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
-----Original Message-----
From: Mauricio Julio Fern=E1ndez Pradier=20
[mailto:batsman@tux-chan] On Behalf Of Mauricio Fern=E1ndez
Sent: November 19, 2005 1:12 AM
To: ruby-talk ML
Subject: Re: Ruby/RoR - Lucene integration question ??
=20
I've an application which is built with RoR and a search index in=20
Lucene. I need to be able to integrate Lucene into the RoR=20 app. What=20
is the best way to do so ?

I know that rjni is a ruby-java bridge but is it stable ? Also the=20
update at http://thekode.net/ruby/rjni/ seems to indicate=20 that it is=20
no longer under development.
=20
rjni is dead.
Try rjb:
=20
http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge
http://raa.ruby-lang.org/project/rjb
=20
You can find an excellent review of Ruby-Java bridges and=20
related tools at http://jp.rubyist.net/magazine/?0003-RLR (Japanese).
=20
 
K

Kris

I am to embark on a similar project. Just started reading on it. Isn't
the index file created by Lucene readable from Ruby? I was planning to
index the files via Lucene and use Ruby to read the index file or if I
cannot read the index file from Ruby I plan to expose a webservice from
the Java side and consume it from the Ruby side. Looking at
Nathaniel's post about CDBaby, I think I am on the right path.

I am looking at Ferret too but I think Lucene is more matured.
 
A

Andreas Schwarz

iamkris said:
I am to embark on a similar project. Just started reading on it. Isn't
the index file created by Lucene readable from Ruby?

As I have understood it, Ferret is a full port of Lucene, so you should
be able to use the same index file from Lucene and Ferret.
 
D

David Balmain

I am to embark on a similar project. Just started reading on it. Isn't
the index file created by Lucene readable from Ruby?

Hi Kris,
Andreas is correct in stating that Ferret can read the index from Ruby.
I was planning to
index the files via Lucene and use Ruby to read the index file or if I
cannot read the index file from Ruby I plan to expose a webservice from
the Java side and consume it from the Ruby side. Looking at
Nathaniel's post about CDBaby, I think I am on the right path.

Why use Lucene to index the files when you can use Ferret. If it's
speed you are concerned about, it shouldn't be a problem by the end of
the month. Ferret should be faster than Lucene by then. One good
reason I can think of is that you'll have better support in Java for
indexing PDF's and Microsoft Office Docs. And Unicode is easier in
Java.
I am looking at Ferret too but I think Lucene is more matured.

This is true in terms of possible bugs. But the index file format and
API are the same.

Anyway, I wish you the best, whatever choice you make.

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top