Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby alternative for Lucene

Tags:

java

ruby

lucene

I have heard about Lucene a lot, that it's one of the best search engine libraries in Java. Is there any similar (as powerful) library for Ruby?

like image 852
RubyDubee Avatar asked Aug 23 '09 13:08

RubyDubee


4 Answers

Well, there's Ferret, which is a port of Lucene to Ruby. Also, Lucene is very easy to use from JRuby, if that's an option for you.

Depending on your needs, you might also want to take a look at Solr, which is a higher-level front-end built on Lucene. There is a Ruby interface, solr-ruby, that interacts with Solr via HTTP.

like image 181
Dave Ray Avatar answered Oct 23 '22 23:10

Dave Ray


Ferret is what you're looking for:

"Ferret is a high-performance, full-featured text search engine library written for Ruby. It is inspired by Apache Lucene Java project."

like image 33
RichieHindle Avatar answered Oct 24 '22 01:10

RichieHindle


I would try one of them in combination with sphinx.

Thinking Sphinx http://freelancing-god.github.com/ts/en/rails3.html

Riddle http://riddle.freelancing-gods.com/

http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html

like image 2
chris Avatar answered Oct 24 '22 00:10

chris


CLucene is a cross-platform C++ port of Lucene. It can be wrapped and used also from every high-level language (there are also a few legacy Swift projects you could start with). See:

http://sourceforge.net/projects/clucene

http://clucene.git.sourceforge.net/git/gitweb.cgi?p=clucene/clucene;a=summary

like image 1
synhershko Avatar answered Oct 24 '22 00:10

synhershko