I am doing a very simple search on my DB using acts_as_ferret. I put this in my "Venue" model:
acts_as_ferret :fields => [:name, :city]
And this is in my controller search action:
@t = Venue.find_by_contents(params[:search]+'~')
and then I just render the results.
render :text => @t.to_json, :success => true, :status => :ok
I...
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...
I have a fresh install of Ubuntu Karmic, Ruby and Rails. I checkout out a working (production) application. Created the databases and ran the rake tasks. Made sure I had all the required gems of which acts_as_ferret by Jens Krämer was one of them.
Everything appears to be installed correctly.
The gems are listed in environment.rb inclu...
I'm using delayed_job to process some files and then create some activerecord objects with the results. The activerecord objects are being indexed with acts_as_ferret which is running as a drb server. When delayed_job processes the job, everything goes fine until it reaches the point when active record tries to talk to ferret via the dr...
I am trying to solve a strange issue with ferret/acts_as_ferret
Of course I have googled and posted the question:
http://www.ruby-forum.com/topic/188570
Basically aaf works on single models with no issue. It also works on single models using the config/aaf.rb file I have setup. It even works when I do a multi-model search in the consol...
I've got everything working with ferret and acts_as_ferret for development (or localhost DRb), but I can't get my multiple host deployment working. All of the remote systems get ECONNREFUSED when accessing the port. On the ferret server, the daemon is listening on localhost only despite the configuration listing the FQDN as the host.
...
I am trying get acts_as_ferret working in my rails applications. I have installed the ferret gem. Installed the acts_as_ferret plugin.
This is what my model looks like now.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
:first_name => {},
:last_name => {}
}
I have even tried
class User < ActiveRecord::Base
...
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...
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...
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...
I've been searching the internet without success, looking for info on acts_as_ferret. The few pages I've found show methods that apparently doesn't exist any more (my rails app show me the "method not found error", and the docs in the acts_as_ferret page are very scarce. Anyone have a good tutorial or API docs about this plugin?
...