Displaying 20 results from an estimated 10000 matches similar to: "Acts_as_ferret: Slow ferret_update with associated models"
2006 May 10
1
acts_as_ferret choking
Hi all,
I''ve ran into a problem with Ferret on my rails app, and I don''t
really have a clue about why. When running the unit tests, I get the
following error output:
> Exception raised:
> Class: <NoMethodError>
> Message: <"You have a nil object when you didn''t expect it!\nThe
> error occured while evaluating nil.version">
>
2008 Oct 08
0
undefined method add called for ActsAsFerret::Remote::Server
undefined method `add'' called for
#<ActsAsFerret::Remote::Server:0x7f5be279ea38>
I am currently using ferret (0.11.6) and act_as_ferret (0.4.3)
My project is using rails 2.1.1 and ruby 1.8.6 along with sqlite3 and
Webrick.
I can start the ferret server and when I do ''ps aux | grep ferret'' in
terminal I see the ferret server to be running.
I have a model and
2006 Jul 07
0
acts_as_ferret transactions
acts_as_ferret does not handle transaction aborts properly. If a model
is modified but something latter causes the transaction it was wrapped
in to abort, the ferret index will not revert to the original record
data. I have included a klunky patch to defer modifying the ferret
index until after the current transaction commits. It would seem
prudent to resolve this issue, though I
2007 Jan 23
2
making acts_as_ferret thread safe?
Hi
I get a synchronize error (see below) when I run a lib script with
script/runner.
The script updates a status field in a model object that is indexed and
searchable within the script/server (mongrel) process.
$ script/runner -e production ''load "lib/billing/credit_subscribers.rb"''
/usr/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/commands/runner.rb:27:
IOError (IOError)
2007 Apr 03
5
Inifinite loop problem with DRb server
Hi all,
We''re attempting to use Ferret with the DRb server at the moment, and
it doesn''t work, at all...
= Executive Summary
The DRb server process keeps on calling the remote index to the DRb
server process... Which means DRb is calling itself, and itself, and
itself, until Ruby kills the Thread with a SystemStackLevel error.
= The excruciating details...
# Mongrel is
2007 Feb 01
4
Automatically Indexing Associated Models
PROBLEM
I have two models, Blog and BlogComment. When a blog is initially
created, it has no comments. Upon creation, the title and body are
automatically added to the ferret index and directly searchable.
However, when a comment is added to a blog, that comment does not get
added to the index and is therefore not ferretable. The desired behavior
is that when a comment is added to a blog, that the
2007 Oct 15
2
how to get all index information on Acts_As_Ferret
how to get all index information on Acts_As_Ferret, like
@index=User.find(:all) on rails. I looked around
ActsAsFerret::ClassMethods,
and didn''t find it..please help me! Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a
stop word.
=> I get a
2006 Sep 18
3
Automatic reindexing of associated columns acts_as_taggable
Hi,
So i''m trying to use acts_as_taggable with the acts_as_ferret plugin,
where I have Post.rb model, which has a method tag_list made available
through acts_as_taggable, as returns a string of associated tag words
from the tags table (tag.rb). I''ve set up my Post.rb model in the
following way.
class Post < ActiveRecord::Base
acts_as_taggable
acts_as_ferret
2007 May 29
1
is "IN" a special word?
Hi, I am trying to do a search for a field that contains the word "in"
or "IN", but ferret doesn''t return me any result.
class User < ActiveRecord::Base
acts_as_ferret :fields => {
:user => {:store => :no },
:len => {:store => :yes}
}
end
ruby script/console
>> User.find_by_contents(''Cal'')
=>
2007 Apr 05
2
best way to maintain dynamic fields?
I have a Topic that has_many comments. In the search results only want
Topics to show up, but I want them to include the text of the comments
that they have when they are indexed. To do this I''ve added a
:comments_text field for acts_as_ferret and the comments_text method
gathers the text from all comments up into a string that can be indexed.
The trick is that when comments are added,
2009 Jan 05
1
acts_as_ferret ActsAsFerret::IndexNotDefined
Hello!
I use acts_as_ferret at first.
I have several models with acts_as_ferret.
When I do search in the models User,Article,Therm it works fine.
But when I try search in Addition model or in Page model I got following
error message:
ActsAsFerret::IndexNotDefined
addition
in the string: @results = Addition.find_with_ferret(params[:q])
or
ActsAsFerret::IndexNotDefined
page
in the string:
2007 Jun 19
2
offline installation of acts_as_ferret gem
hi folks,
I have been trying to use acts_as_ferret in my rails app.I
have installed the ferret gem.I would like to download acts_as_ferret
gem and then install it offline.But i was unable to find any link for
download..please let me know if any one has did it before...
any help appreciated...thanks in advance....
regards,
venkat
--
Posted via http://www.ruby-forum.com/.
2008 Sep 25
1
Acts_as_ferret, DRb, 4 monrels and complete site lockups
Hi,
I am having some serious problems with site that''s already live. It is
using RoR 1.2, ferret 0.11.6 and most recent acts_as_ferret plugin.
Most of the day, site is doing pretty well, is quick and search is
reliable. But, at some point, it just "locks" and stops responding,
one instance of mongrel after another.
At the same time ferret DRb server starts eating lots of CPU.
2006 Jun 29
2
Possibly same issue as ''duplicate search results'' topic?
Unfortunately I''m a newbie to ruby, rails, and acts_as_ferret. Also,
I''m working in code I mostly didn''t write, so I''m kind of unsure of
things. So this may be a dumb question. It also may be the same issue
as the topic ''Duplicate search results'', but I''m not sure.
When I update column values with
2007 Jul 24
1
Why can''t find index file sometimes?
I''m using ferret and acts_as_ferret,i can success save record,but
sometimes when i update record,index not found error occurred(not
always).I don''t know why:(
[quote]
File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
tried to open "/home/dev/www/index/development/rcu/_12q.cfs" but it
doesn''t
2006 Dec 15
1
acts_as_ferret: reindexing it too slow
Hi,
Recently, I was trying to play around with AAF and found that reindexing
table is very slow. Then I started looking into Ferret performance and
tried myself and found that it''s very fast. Then, I just used Ferret to
index my table and it was also very fast. All good.
Then why reindexing using AAF is slow. After sometime I found that in
the AAF, it uses (:key => :id) in
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi,
I use ruby console to experiment acts_as_ferret, but I ran into file
rename error when I try to rebuild index after doing a search.
is this normal? I am using Ferret 0.10.9 in windows XP.
Loading development environment.
>> Address.rebuild_index
=> {}
>> Address.find_by_contents(''US'')
=> #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2,
2007 Mar 05
3
programatically stopping acts_as_ferret drb server
I need a way to kill the ferret_server drb process programatically, so I
can start/stop it as part of the capistrano deployment process.
This should be as simple as adding some sort of stop method to
ActsAsFerret::Remote::Server. I was just messing around and was able to
do it by modifying method_missing to look for the :stop method and then
calling DRb.thread.exit -- this is not good enough for
2007 Aug 06
4
acts_as_ferret cross model index not updating
Does anyone know how do you get acts_as_ferret to automagically update
non-standard fields?
I''ve followed Rails Envy''s tutorial
(http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#nonmodel) to
get aaf working across different models. And once the index is built it
searches fine.
In my (main) model, I''ve put:
acts_as_ferret :fields => [ :name,