Displaying 20 results from an estimated 1000 matches similar to: "Acts_as_ferret, DRb, 4 monrels and complete site lockups"
2008 Aug 20
1
acts_as_ferret and DRb server errors
I am seeing this in my ferret_server.log when I do a search:
DRb server: ensure_index_exists for class Myclass1
DRb server: ensure_index_exists for class Myclass2
DRb server: ensure_index_exists for class Myclass3
DRb server: ensure_index_exists for class Myclass4
#method_missing(:id_multi_search, ["Myclass1", "test*", ["Myclass4",
"Myclass3",
2007 Feb 27
3
acts_as_ferret rebuilding issue with ferret 0.11.0
Hi,
There is a problem with the way that acts_as_ferret verifies the index
is valid. In ensure_index_exists it looks for a file named ''segments''.
With the 0.11.0 release of ferret there is no file with this name. On my
dummy application I have a ''segments.gen'' and ''segments_2y''.
Changing the test to segments.gen fixes the problem that the
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
Thanks Stuart. I thought I had read somewhere that rebuild_index
built the index in a different location and then swapped it, but
after looking at the code (in local_index.rb) this doesn''t appear to
be the case. That might explain why the ferret server crashes
sometimes when a search takes place during a reindex.
I wouldn''t be doing exactly the same thing as this but
2007 Oct 03
3
The ferret logs
Hi.
We''ve had some problems with ferret not being able to load our classes
(stack trace below for the curious).
I nailed it down to a deployment issue, where an old instance of ferret
drb was running. I don''t understand the details quite yet, but the
result was the the old ferret was never shutdown during redeployment,
and attempts were made to start up a new one.
Anywho,
2008 Jan 21
4
Rails app cannot connect to Ferret server
I have installet the Ferret gem v. 0.11.6 and the latest acts_as_ferret
plugin from
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/acts_as_ferret
I''ve followed the instructions here
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer to set up the
server, and put acts_as_ferret :remote => true on one of my models (Ad)
I can also start the ferret_server, but when
2007 Nov 05
0
Partial Class Definition if Ferret Server Not Running
When using a remote ferret server, if the ferret server is not running
the acts_as_ferret class method will raise an exception. This causes
the model class to only be partially defined, and therefore all use of
that class in the rails application will explode until the rails
process is restarted.
This stems from the fact that ensure_index_exists is called on the
server just before the
2007 Jun 27
2
acts_as_ferret, DRb, and filter_proc
I was just trying to use acts_as_ferret with DRb and filter_proc,
without much success. My guess is that this isn''t possible because
there''s no way to send the proc to the DRb server, correct?
Person.find_by_contents("jonathan", :filter_proc => proc {}) causes an
exception when using DRb (DRb::DRbConnError: DRb::DRbServerNotFound).
I can work around this by
2007 Jun 16
2
more specific queries via IndexReader
We would like to show a list of "most recently added terms", meaning,
the results of this query:
Resource.aaf_index.ferret_index.reader.terms(:summary)
BUT, only returning terms from a certain set of documents (in our
case, we are going to filter by creation data).
Is this possible?
Thanks,
John
2007 Jun 13
14
Do delegates work properly in Drb mode?
Hi folks,
I have several models that index well in Drb mode.
However, I have one scenario where it works in normal mode, but not in
Drb mode.
model A
field :one
end
model B
belongs_to :a
field :two
delegate :one, :to => :a
acts_as_ferret :fields => { :one => {}, :two => {} }, :remote => true
end
If I leave off the :remote parameter, it works. Or, if I don''t
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 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
2009 Jul 18
1
Windows 7 on Xen 3.2.1 on Debian 5.0 fails to install
Hi guys,
I am having problem with installing Windows 7 RC on Xen. My config file is:
WIndows is starting, which i can see in VNC terminal, and it hangs on
"Starting windows" screen...
I get error in logs which says:
...
Done register platform.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
And I/O request error repeats as many times as many cores virtual cpus
I
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with
DRb? I''ve given up on searching on Google, I''m getting no results that
are actually helpful.
def self.find_storage_by_contents(query, options = {})
# Get the index that acts_as_ferret created for us
index = self.aaf_index.ferret_index
results = []
default_options = {:limit => 10,
2007 Feb 04
10
[AAF] remote indexing via DRb with acts_as_ferret
Hi!
Aaf trunk has undergone several major refactorings the last days, with
the result that you can now transparently switch your app from local
to remote indexing and back :-)
If you plan to scale your app to more than one physical machine, or
if you have problems with corrupted indexes and the like under high
load, you really should give this a try.
I wrote some documentation to get you
2009 Mar 18
0
Acts_as_ferret: Slow ferret_update with associated models
Hi,
I am using some custom fields for ferret indexing to include fields from
associated models. When those child models are updated, I do
ferret_update
on the parent model. Unfortunately, that takes very long, depending on
the
number of associated child models. That is because every child model is
called to re-index the parent, instead of just the changed one.
What can I do to speed up
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 May 01
2
AAF and DRb server
I''ve installed the ferret gem. I installed AAF as a plugin into my
vendor/plugins directory of my project. In development environment my
searches work just fine, without any problems.
For production I configured the ferret_server.yml file with correct
information about the machine my DRb server is running on. I start the
ferret server with the following command:
ruby script/runner
2007 Jul 03
4
problems with acts_as_ferret
Hi,
I have i am trying to add a search feature to a ruby on rails blog, so
ive decided to use ferret. So far i have had quite a few problems with
it, from following a few tutorials i didnt really understand... i am at
the point where i can make a search and it returns the score of the
result. I want it to also show the title of the post and i think i have
implemented it correctly but it
2007 Jul 04
2
problems after gem update
Hi, I had ferret working wonderfully but i am regretting doing a gem
update today.
I had alot of trouble first installing it and was really happy to have
it working. The upgrade was from 0.3.1 to 0.4.0.
The problem is;
in the rails console,
>> @results = Book.find_by_contents("peter pan")
=> #<ActsAsFerret::SearchResults:0x487040c @total_hits=0, @results=[]>
Its indexing
2006 Jul 06
5
acts_as_ferret Locale issue
I''ve just installed acts_as_ferret, and am trying to build my index, but
I''m getting the following error:
>> r = Topic.find_by_contents(''testing'')
StandardError: : Error occured at <analysis.c>:704
Error: exception 2 not handled: Error decoding input string. Check that
you have the locale set correctly
from