Creating a "Search"

Just give acts_as_ferret a try. You won't need a video to get going, promised :wink:

However it's correct that there are known locking problems and index corruptions occuring when accessing the index with multiple processes under high load.

To solve these problems, aaf now comes with a DRb-based server that will be the only process accessing the index - quite similar to solr's approach. Plus you'll only have to set this server up in your production environment, for development mode the usual direct index access is enough.

To get started, have a look at http://projects.jkraemer.net/acts_as_ferret

In case of problems, don't hesitate to ask on the ferret mailing list (ferret-talk@rubyforge.org or http://www.ruby-forum.com/forum/5)

cheers, Jens

Hi! [..]

I seem to be having problems with this as well. When including the file I get a premade page that says:

We're sorry, but something went wrong.

We've been notified about this issue and we'll take a look at it shortly.

that's the standard Rails http/500 page. look in log/development.log for the real error.

All I did was add the line: require 'acts_as_ferret'

that is only needed in environment.rb if you installed acts_as_ferret as a gem (gem install acts_as_ferret).

And I recieved that error. I followed the quick start guide perfectly and downloaded from svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret

I suppose you did this via script/plugin install ... ? If this is the case, remove the above require from wherever you put it and just use acts_as_ferret in your model:

class YourModel   acts_as_ferret end

Jens

[..]

Yes I downloaded off the svn and copied over all the libraries into my /lib folder and when I don't use the require I get:

undefined local variable or method `acts_as_ferret' for Article:Class

For some reason I am cursed when it comes with getting plugins to work

maybe that is because you don't install them the right way - why don't you just use script/plugin install ... ?

Or, if you manually checkout the source, then do it inside RAILS_ROOT/vendor/plugins

Rails will only pick the plugins up automatically if they're in that place.

Jens