Displaying 20 results from an estimated 4000 matches similar to: "Ferret causing "out of memory""
2006 Jun 15
1
Ferret::Analysis::PerFieldAnalyzerWrapper is not exported
Hi,
I am on Ferret 0.9.3 and it seems to me that 
Ferret::Analysis::PerFieldAnalyzerWrapper is not available in 
ferret_ext.
--
Sergei Serdyuk
Red Leaf Software LLC
web: http://redleafsoft.com
-- 
Posted via http://www.ruby-forum.com/.
2006 Jun 15
10
Finding out all terms from search results. How?
Hi everybody,
I need to find out all terms (field values) from one of the fields from 
a set of documents returned by search.
In other words, I have indexed documents with two fields. I do search on 
one field and then want to know all other field''s values from fount 
documents.
How?
--
Sergei Serdyuk
Red Leaf Software LLC
web: http://redleafsoft.com
-- 
Posted via
2006 Jun 23
1
Can not rescue ferret exception. What is wrong?
Hi,
I have a big index and wildcard query raises an exception. That is all 
right. The problem is I can not rescue this exception and it bombs right 
to user page. Why?
I am on Linux. Ferret 0.9.3 with C extentions.
>> class A
>> def self.b
>> Book.index.search(''isbn:00*'')
>> rescue
>> puts ''ok''
>> end
>> end
=>
2006 Apr 06
3
Formating Float ActiveRecord attributes in text inputs
I have AMOUNT field that ActiveRecord maps to Float.
Then I use text_field helper to generate text inputs on forms.
Helper takes model object and attribute name and does not provide any 
formatting abilities, thus 2.40 is shown as 2.4 which is fine with 
floats but does not look good with currency.
I have worked around this issue by adding amount_f attribute to the 
model that returns formatted
2006 May 19
1
imdex.update is 10 times slower than index.add_doc. Normal?
Hi,
I am seeing that
doc = index[''mykey'']
index.update ''mykey'', doc
is about 10 times slower than
doc = Document.new
doc[''id''] = ''mykey''
index << doc
It looks like #update is _much_ slower that #<<. Is it as expected?
Sergei.
-- 
Posted via http://www.ruby-forum.com/.
2006 Jun 20
7
Any fast way to update non-indexed fields?
Hi,
>From looking at Ruby sources it seems that every update method deletes 
and reinserts documents. It makes sense if indexed fields are changed 
but what if it is not the case? It would speed up update a lot indexes 
did not have to be updated twice for nothing. Any quick way to do it?
--
Sergei Serdyuk
Red Leaf Software LLC
web: http://redleafsoft.com
-- 
Posted via
2006 Jun 15
3
best updating method
Hi All,
I have a Ferret index containing some cached RSS feeds.
I have a nightly cron script to cache the feeds, and I''d like to update
the index with the latest feeds.
I see the Index class has an update method, but I can''t work out how to
get the id of the relevant document to pass in.
Lets say I have a file called "google_news.xml"
I want to go:
   
2006 Feb 16
2
Ferret with relative index paths
Hi,
I have ferret working fine on my Dev machine using a relative index
path as follows:
USER_INDEX = Index::Index.new(:path => "indexes/user", :key => ''id'',
:auto_flush => true)
And the indexes/user directory is located directly off the root of my
project tree.
But when I migrate this same code to my shared TextDrive account,
Ferret cannot find the index
2005 Dec 02
8
Ferret 0.3.0 released
Hi folks,
This latest release of Ferret has a lot of improvements. There have
been substantial improvements to performance. Try it for yourself to
see. I won''t be publishing any numbers just yet. I will say though
that it''s still about 2-4 times slower than Lucene with the extension
installed. There is also some performance improvements in the pure
Ruby version if you
2006 Mar 21
3
Instance variable shortcuts to fixture data are not working?
Hi,
I am following the Agile Web Development with Rails book and it looks 
like either book is wrong or edge rails are broken.
I am trying to access fixture data through instance shortcuts. I.e. 
customers.yml through @customers and it is not assigned.
Anybody knows why?
Sergei
-- 
Posted via http://www.ruby-forum.com/.
2006 Mar 20
3
Unit tests leave data behind when they should not
Hi,
I was confused yesterday. I have bunch of tests and one of those was 
testing ActiveRecord::save and it was all right, but next method failed 
because table still had newly created record. All documentation suggests 
that it should not be the case and that data is reloaded from fixtures 
before every method is run.
I am running edge rails and really did not have anything special done 
about
2006 Jan 05
6
Problems with Ferret in RForum
Hi,
I have been using Ferret on ruby-forum.com for a few days. While the 
searching works with reasonable performance, there are a lot of problems 
related to indexing. Sometimes the process hangs with 100% CPU usage, 
sometimes it leaves Lockfiles in the directory (causing other processes 
to fail while one ist still working), sometimes it even crashes with a 
segfault.
I''m going to
2006 Apr 03
5
RJS Queue
Hi,
I''ve been able to succesfully queue page.visual_effect commands in my 
RJS templates.  Each command will wait to execute until the previous 
command is done executing.
But I''d also like to execute a page.replace_html command AFTER the 
page.visual_effect commands.  I have a series of five DIVs:
div1
div2
div3
div4
div5
When the user clicks on div1, a page.visual_effect
2007 Mar 12
5
index.rb:384 [BUG]
Hi folks,
I''ve working and playing with acts_as_ferret and follow this fantastic
tutorial:
http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial
When I try to implement the field storage tip, it crash. So, I try to
make it via script/console:
1. I have a simple model called Articles:
class Article < ActiveRecord::Base
        acts_as_ferret :fields =>
2005 Dec 08
2
Confusing lock problem in rails
I have a model class in rails that has a class variable that is a
ferret index.  For some reason, the methods in my class that refer to
the class variable are getting lock conflicts.  Can anybody see any
obvious reason why?  I notice that it keeps leaving a lock file in the
index directory.  I thought auto_flush was supposed to remove the lock
automatically after every operation.  Is there
2006 Mar 01
9
Updating Index Is Very Slow
Hi,
I am experiencing very poor performance when updating my index.  For
example, to update the index for 10 documents, it is taking 3 to 4
seconds.  My index is currently very small... with probably less than
100 docs in it.
I have created my index as follows:
GIFT_INDEX = Index::Index.new(:path => "#{index_dir}/gift", :key =>
''id'', :auto_flush => true)
2006 Aug 26
7
Erratic behavior with ferret 0.95 and acts_as_ferret
I am getting this issue also... Does anyone know what this is? When will 
Acts as Ferret be available for v10?
Thanks for your help in desperation!
Caspar wrote:
> Okay previous post related to me trying to fix this problem with an 
> upgrade to ferret 0.10.0 but acts as ferret is obviously not compatible 
> with this new version of ferret.
> My app is about to go into production and
2006 Apr 03
1
debugging RJS output
Hi,
Is there a way to log RJS output in development.log?
Thank you.
-- 
Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
STI and ActiveRecord attributes unprotected
Hi,
This does not seem to be covered anywhere. Since base class extends 
ActiveRecord with a table that has fields for all heirs, would that mean 
that any heir class can access any of those attributes, including ones 
that belong to other heirs?
Or I am missing something?
-- 
Posted via http://www.ruby-forum.com/.
2009 May 19
1
logging with the daemons gem
I am trying to leverage the daemons gem but I am confused about the  
proper way to set up logging.  I am able pass options which configure  
stdout to go to a log file but it seems like all calls to Rails.logger  
are disabled as I see the following message in my output:
usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ 
active_support/buffered_logger.rb:99:in `write'': closed