Questions tagged [acts-as-ferret]

This ActiveRecord mixin adds full text search capabilities to any Rails model.

Acts_as_ferret is a plugin for Ruby on Rails which makes it simple to implement full text search for Rails. It builds on Ferret which is a ruby port of Apache Lucene. It is a technology suitable for nearly any application that requires full-text search.

Wiki: http://wiki.github.com/jkraemer/acts_as_ferret/

24 questions
4
votes
1 answer

How rebuild index with acts_as_ferret?

I am using acts_as_ferret(0.4.3) to do full-text searching, but when update index I need to restart ferret, so is there any good method to make it update automatic? thanks!
why
  • 23,923
  • 29
  • 97
  • 142
3
votes
0 answers

How to run ferret (acts_as_ferret) with jruby?

I have an existing project, which uses the "acts_as_ferret" gem. I installed it (and the other required gems) and tried to run the db-migration script. I get the following error: gems/rails-2.3.4/lib/rails/gem_dependency.rb:119:Warning:…
Stephan
  • 1,639
  • 3
  • 15
  • 26
2
votes
2 answers

Installing ferret and acts_as_ferret

I'm looking for a solid walkthrough or some direction on getting ferret set up on my rails server. Everyone on the internet makes it seem so easy, but I can't seem to get it all together. What I've done succesfully: gem install ferret gem install…
Kyle Macey
  • 8,074
  • 2
  • 38
  • 78
2
votes
2 answers

delayed_job talking to acts_as_ferret via drb server results in a closed stream error

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…
rich
  • 21
  • 1
1
vote
2 answers

Ferret search not working for my rails app

First, I logged into the ruby script/console -e production and tried to index each table using Model.rebuild_index It worked fine and returned true I then started the ferret server using the command ruby script/ferret_server start -e…
Mithun Sasidharan
  • 20,572
  • 10
  • 34
  • 52
1
vote
0 answers

Delete hanging ferret index entry after record deleted

I'm using ActsAsFerret which is a Rails wrapper for the Ruby-based Ferret search engine. Sometimes it seems a record is deleted using SQL, rather than via ActiveRecord (ie record.destroy), and when this happens an index entry is left in the Ferret…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
1
vote
3 answers

Rails: find_by_contents with conditions; syntax help please

Looking to limit a find based on conditions in a Rails 2.0.2. Find statement: @employees = Employee.find_by_contents(params[:keywords].to_s, :include => [ :categories, :revisions, :approvals, :archives, :related_documents ]) Need to add a condition…
Jeffrey
  • 4,098
  • 11
  • 42
  • 66
1
vote
1 answer

acts_as_ferret with German umlauts

I managed to setup my app with a search based on acts_as_ferret. Overall it works fine. But I can't find results for words with umlauts (e. g. “Getränke”). I added this to my environment.rb and rebuilt the index from scratch, but no better…
Martin Labuschin
  • 516
  • 4
  • 16
1
vote
0 answers

Rails 2.2.2 - ferret server keeps dying

We've been using ferret in a rails 2.2.2 app for years, and it's been fine (with a few quirks). Now, though, whenever I try to use it locally, it just dies. I can start it up, and then as soon as Rails (in my local server, or in the console) tries…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
1
vote
1 answer

condition on model on class macros

It's possible to put conditions on models like: class MyPeppers < ActiveRecord::Base acts_as_a_ferret() if Rails.env.production? end It's valid ruby code but I wonder if that should work?
Arnold Roa
  • 7,335
  • 5
  • 50
  • 69
1
vote
1 answer

ferret / acts_as_ferret : Specify that a field should be blank

This relates to the lucene-based search engine, Ferret. https://github.com/dbalmain/ferret Let's say i have a model with two fields, myfield1 and myfield2. I want to get records that have myfield equal to "foo", or that have null (or an empty…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
1
vote
1 answer

acts_as_ferret not searching at all

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 => { …
Chirantan
  • 15,304
  • 8
  • 49
  • 75
0
votes
2 answers

acts_as_ferret - how to limit a search to a small number of fields?

I have a model School which is ferret-indexed on 10 or 12 different indexes. In one particular search, i want to return only schools which match the search term in one of the following fields: ["name", "postcode", "urn"] (urn is a uid kind of…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
0
votes
2 answers

Is ruby on rails plugin, acts_as_ferret, very buggy?

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…
Tony
  • 18,776
  • 31
  • 129
  • 193
0
votes
1 answer

How do I install acts_as_ferret in Windows XP?

I cannot install Acts As Ferret in Windows XP. My development environment is, RubyGems - 1.7.2 Ruby - 1.8.7 devkit - 4.5.1 When I ran the command gem install acts_as_ferret, I got the error below. Any clue? C:\TEMP\test\devkit>gem install…
erwin davis
  • 29
  • 1
  • 3
1
2