ferret

"Cannot add array to BooleanQuery" error with ferret on rails

I'm trying to get a simple search form working in my RoR site. I've got the following code: (in note_controller.rb) def search @results = Note.find_with_ferret(params[:term]).sort_by(&:ferret_rank) respond_to do |format| format.html format.xml { render :xml => @nootes } end end (in note.rb) class Note < ...

Is there a pure Python Lucene?

The ruby folks have Ferret. Someone know of any similar initiative for Python? We're using PyLucene at current, but I'd like to investigate moving to pure Python searching. ...

What associations should I use to be able to sort search results by an associated model in a rails app?

Hi all, I'm currently writing an app that pulls all the tweets from twitter with links in them and puts them into our searchable database. Our database tables look like this: Tweets content tweet_id Links url title count User username user_image We'd like to be able to search through the tweet.content column for a s...

DelayedJob with acts_as_ferret in production mode

I get the following error when I run my task via DelayedJob: closed stream /usr/lib/ruby/1.8/drb/drb.rb:961:in `select' /usr/lib/ruby/1.8/drb/drb.rb:961:in `alive?' /usr/lib/ruby/1.8/drb/drb.rb:1211:in `alive?' /usr/lib/ruby/1.8/drb/drb.rb:1168:in `open' /usr/lib/ruby/1.8/drb/drb.rb:1166:in `each' /usr/lib/ruby/1.8/drb/drb.rb:1166:in `o...

Using Ferret to build unique tag clouds

I've been using Ferret as my full-text search engine in a small project I'm working on. Through the documentation and a few examples online, i've been able to pull together a tag cloud generator using the full-text index to help with tag cloud generation using the IndexReader.terms method. It's worked quite well up to now, when I want ...

Is Ferret stable enough to use in production?

Ferret the ruby implementation of lucene is reasonably powerful, however online discussions in 2008 seemed to indicate ferret had many stability issues and would segfault regularly. There have been 10 or so commits this year so the project has pretty light activity. Is Ferret stable enough to use in production? ...

Garbage collection with Ruby C Extension

Hi I am working my way through Ferret (Ruby port of Lucene) code to solve a bug. Ferret code is mainly a C extension to Ruby. I am running into some issues with the garbage collector. I managed to fix it, but I don't completely understand my fix =) I am hoping someone with deeper knowledge of Ruby and C extension (this is my 3rd day wit...

How to install ferret gem on Windows 7 ?

Hi, I was trying to run an OpenSource project which requires ferret to be installed. While installing it using gem install ferret, it's giving this error -> Building native extensions. This could take a while... ERROR: Error installing ferret: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe ext...

need help with acts_as_ferret and will_paginate to play nice together

I have installed will_paginate and acts_as_ferret on my system for ruby rails. My paginate seems to work fine before installing acts_as_ferret. When I put in the code to do searching I get the following error: NoMethodError in Community#search Showing app/views/community/_result_summary.rhtml where line #3 raised: undefined met...

the ferret error in rails project

I use the plugin of acts_as_ferret. when i use find_with_ferret,i got this problem.I got the error messages from the console like this EOFError in 'DestroysController save destroy require reason' End-of-File Error occured at <except.c>:117 in xpop_context Error occured in store.c:216 - is_refill current pos = 0, file length = 0 T...

Can acts_as_ferret be used without the DRb server?

I'm considering AAF for a Rails project, but there seems to be quite a bit of chatter that gives AAF a reputation for being very buggy & unstable. From what I've been able to determine, most problems result from multiple processes trying to write to the Ferret index, but I've not been able to determine whether problems also result when...