Displaying 18 results from an estimated 18 matches similar to: "acts_as_ferret transactions"
2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of
documents acts_as_ferret does. Something like MyModel.disable_indexing
MyModel.enable_indexing would be perfect. I need this because I do some
indexing that requires visiting the parents of the model objects and my
import method imports the children first, so the information isn''t there
yet. I''d like to
2006 May 23
13
acts_as_ferret 0.2.1 segfault
Hi,
I just installed via script/plugin from the stable svn tag. (Revision 54)
I''m running Rails 1.1.2 and have Ferret 0.9.3 (with C extensions. no
compilation problems)
I put together a simple model to test it and I''m getting a segfault.
The model:
class Report < ActiveRecord::Base
acts_as_ferret :fields => [:title, :name]
end
$ script/console
Loading development
2008 Jan 04
0
Records not in search results until I recreate record index
our object A has three properties
title - a straight db field,
open_for_search - a method which returns yes or no
site_search - which is a list of codes based on a has_many relationship
so our api accepts a title and a list of sites
creates object A with
object = Object.new
object.title = thetitle
sites = Site.find_all_by_whatever([whatever])
object.save
object.sites << sites
Then
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
2006 Aug 24
5
[0.10.0 - acts_as_ferret] Problem while saving new items
Disclaimer: ferret newbie here, don''t blame too hard.
Hi, I''m trying to apply acts_as_ferret to apply search to my Person
model:
class Person < ActiveRecord::Base
validates_presence_of :name, :surname
acts_as_ferret :fields => [ ''name'', ''surname'' ]
...
But when I try to save a new Person instance I get this error:
2007 Oct 01
2
FileNotFoundError
Hi, I saw someone else have this earlier. The recommendation is still to
downgrade to 0.11.3?
Oct 01 19:56:09 ey01-s00116 rails[3175]: Ferret::FileNotFoundError (File
Not Found Error occured at <except.c>:117 in xpop_contextError occured
in fs_store
.c:329 - fs_open_input tried to open
"/data/zendesk/current/config/../index/production/ticket/_l.cfs" but it
2006 Dec 15
1
Ferret debugging
Is there any way to debug processes of creating/updating of index and
data retrieval?
I use ferret (0.10.13) and acts_as_ferret plugin, and it seems that
index is being updated - field ''state_or_province_or_region'' has value
''ON'':
ferret_create/update: Entity : 1
creating doc for class: Entity, id: 1
Adding field description with value ''Sed metus
2006 Oct 19
0
wrong indexing when I use disable ferret and ferret update i
I am using acts_as_ferret plugin. ITs working great on my local but when
i put it on my textdrive server indexing is not proper. If I delete the
indexes created, and search then the new set of indexes seem to work
fine. But when I use ferret_create(I have do so for a new entery in my
db), the whole indexing thing goes wrong. I get wrong results. Is this
due to character encoding?
Thanks
2006 Jun 01
1
Using acts_as_ferret outside rails
How do I use a model that has "acts_as_ferret" defined outside rails?
I''ve tried adding this to the top of my model:
require
"#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb"
and then defining RAILS_ROOT and RAILS_ENV in my app that uses the model
outside rails. That got me this exception:
2007 Aug 30
0
Method missing error after switching to DRB
I am getting these errors after switchign to dRb:
It is trying to call ''add'' on MY SourceListing class, not extended with the
ferret indexing methods.
Any ideas on where to fix this? I''m combing through the code now.
no luck, trying to call class method instead
ferret server error undefined method `add'' for SourceListing:Class
2006 Aug 25
6
End-of-File Error occured at <except.c>:103 in xpop_context
Hi, I get this when searching or adding a new record. I am using today''s
version of trunk and gem ferret 0.10.0
any ideas? thanks!
EOFError in DvbesController#new
End-of-File Error occured at <except.c>:103 in xpop_context
Error occured in store.c:197 - is_refill
current pos = 0, file length = 182
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full
2006 Nov 07
1
Memory consumption too high
Hi,
I''m having trouble with ferret and AAF blowing up with a NoMemoryError.
Sometimes when I add documents inside my rails app. Ferret starts
consuming huge amounts of memory. I''m on a machine with 2GB of memory
and it still runs out of memory. Sometimes I''m able to run
MyObject.rebuild_index and the memory doesn''t move up at all. However,
sometimes it
2007 Jan 18
4
[ActsAsFerret] Index Directory Disappears and Not Re-created
Hi,
This is a recurring issue for me - the index directory on my production
server and everything below it occasionally disappears and isn''t
reconstructed. I tried manually creating the entire index path manually
before starting the server, but it still happened while the server is
running.
I don''t know what''s causing the index to disappear and I''m also not
2007 Nov 11
5
undefined method `add''
We''ve been running into problems with ferret indexing lately. The
problem is intermittent and some times it persists. Just got this after
wiping the index and redeploying:
NoMethodError (undefined method `add'' for Solution:Class):
(druby://10.1.65.87:9009)
/data/releases/20071111152414/vendor/rails/activerecord/lib/active_record/base.rb:1238:in
`method_missing''
2006 Aug 01
8
Problem importing lots of records
I run a script that imports a few thousand records into the database.
The script runs once for each of several XML files. What it does is
parse the XML and for each element of a certain type creates a record in
a rails database that gets indexed with acts_as_ferret. This worked fine
before but today after a few files (70000 records) this started to
happen for any file I tried:
2007 Apr 07
19
Constant 0.11.4 Errors
Folks,
Since upgrading to ferret 0.11.4 on Mac OS X Tiger, I''ve been running
into constant crashes when running my Rails tests. Here''s an example of
the output.
-- snip --
1) Error:
test_published_blog_can_be_ferreted(BlogTest):
Ferret::FileNotFoundError: File Not Found Error occured at
<except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a
2005 Dec 02
43
ANN: acts_as_ferret
Hi all
This week I have worked with Rails and Ferret to test Ferrets (and Lucenes)
capabilities. I decided to make a mixin for ActiveRecord as it seemed the
simplest possible solution and I ended up making this into a plugin.
For more info on Ferret see:
http://ferret.davebalmain.com/trac/
The plugin is functional but could easily be refined. Anyway I want to share it
with you. Regard it as a