search for: ferret_en

Displaying 17 results from an estimated 17 matches for "ferret_en".

Did you mean: ferret_ext
2008 Jan 10
2
Error on manual indexing
I''m having some problems with getting the drb server to work correctly on my production server. As a workaround I tried disabling automatic indexing and have a cron job manually update the index every hour or so. I disabled the automatic indexing with: def ferret_enabled? false end But whenever I try Page.rebuild_index I get a ''wrong number of arguments'' error. I seem to remember that this used to work, am I doing something wrong or has something changed? The full error: ArgumentError: wrong number of arguments (1 for 0) from ./scri...
2007 Sep 12
3
Can''t disable ferret when running in Mongrel
In my environment.rb I say the following: MyModel.disable_ferret puts MyModel.ferret_enabled? The console works as expected: script/console false >> MyModel.ferret_enabled? => false I can then edit an instance, ferret remains disabled and the changes are not immediately indexed. However, when I start mongrel Ferret is initially disabled, but then somehow becomes enab...
2007 Mar 06
3
aaf excluding certain db records from indexing
hi! short question about aaf: is there a builtin functionality in acts_as_ferret to exclude records from being indexed when for example a column "is_deleted" / "is_disabled" / "dont_index" has a certain value? regards neongrau -- Posted via http://www.ruby-forum.com/.
2007 Sep 28
6
Prevent indexing depending on variable
Hi guys, I''m using attachment_fu on my site to allow users to upload pictrues. Pictures can be set to only allow friends to view them. The problem I''m having is ferret is indexing the images along with their thumbnails which means I end up with a lot of broken images in the search. Also it''s indexing images whose privacy is set to 1 (friends only). How could I go about
2007 Oct 04
2
Offline indexing issues
If I disable ferret in my environment file and then run a cron job every hour to index the records that have been added/changed, do I enable Ferret just in the script that does the hourly indexing? Or do I somehow need to tell the process that runs the Ferret DRB server that it should start writing to the index again? Thanks in advance. Erik
2007 Mar 06
1
in acts_as_ferret, excluding records from rebuild_index
Is there any way for the automatic ''rebuild_index'' of ''acts_as_ferret'' from exclude certain records from being included in the index? -- Posted via http://www.ruby-forum.com/.
2007 Jun 07
5
Advise on slowness in bootstrapping?
I am looking at trying to use ferret/aaf to supplement my querying against a medium and large table with lots of columns. Some facts first: Ferret 0.11.4 AAF 0.4.0 Ruby 1.8.6 Rails 1.2.3 Medium table: 105,464 rows 168 columns (mostly varchar(20)) 11 actual columns indexed in aaf plus 40 virtual columns indexed in aaf (virtual is concat of two physical columns. e.g. cast_first_name_1 +
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
2007 Nov 11
6
Reducing dependency on remote ferret process
Hi. We use FerretDrb for search. If the ferret process is down, our entire application comes down the moment we try to save a model which is indexed. Is there a way to decouple this relationship such that we can somehow resume normal operations despite ferret being down and not index the model? Thanks. Morten
2007 Apr 10
1
prevent index auto update
Hi, I have a has_many association between Book and Page. I have acts_as_ferret running on only the Book model. However, when I update the a page, it calls the auto update index on the Book model as well just in case any of the ferret fields were changed. How can I stop acts_as_ferret from auto updating the index on its own, especially when nothing changes? -- Posted via
2007 Feb 16
1
find conditions in more_like_this
Hello. I''m trying to use acts_as_ferret to index with set conditions. Ideally I could do something like: acts_as_ferret :fields => [ :title, :body ], :conditions => ["enabled = 1"] But would settle for being able to do: @similiar_blogs = @blog.more_like_this :field_names => [ :title, :body ], :conditions => "enabled=1" What is the
2007 Nov 07
2
Ferret-talk Digest, Vol 25, Issue 2
> From: Jens Kraemer <jk at jkraemer.net> > Subject: Re: [Ferret-talk] Performance before and after optimization > On Sat, Nov 03, 2007 at 08:49:17PM +0800, Alex Neth wrote: > [..] >> 2) Can I keep a second index so that it doesn''t get locked during >> optimization and then switch to the optimized index? Perhaps the >> index >> is not really
2007 Mar 13
6
Acts_as_ferret and auto-flush
Hi, I''m using acts_as_ferret in with a mongrel and I'' m getting locking errors that after a while result in a corrupt database. I know about the problem with different processes writing to the index but I haven''t been able to get the DRB server working properly yet. I read on this list that another solution is to set :auto_flush to true but I''m not
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
...um(:id) > start = self.minimum(:id) > > start.step(max, increment) do |n| > begin > record = self.find(n) > rescue ActiveRecord::RecordNotFound > next > end > index << record.to_doc if record and record.ferret_enabled? > (true) > end > end > > Then I have a rake task to replace the old index with the new one. > > -Stuart Sierra > columbialawtech.org -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/ferret-talk/a...
2007 Jul 04
2
problems after gem update
...p(here''s the stack), ArgumentError in SearchController#search wrong number of arguments (1 for 0) RAILS_ROOT: C:/INSTAN~1/rails_apps/clean/config/.. Application Trace | Framework Trace | Full Trace C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:220:in `ferret_enabled?'' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:220:in `reindex_model'' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/local_index.rb:219:in `each'' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/acts_as_ferret-0.4.0/lib/loc...
2008 Jan 21
4
Rails app cannot connect to Ferret server
...image_on_list, :phone2, :ts_display, :color_id, :show_bold_text, :phone1, :disappeared_from, :qty_available, :date_sale_ready, :phone3, :user_id, :ts_expire] ArgumentError (wrong number of arguments (1 for 0)): (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `ferret_enabled?'' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `index_records'' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_indexer.rb:19:in `each'' (druby://localhost:9010) /vendor/plugins/acts_as_ferret/lib/bulk_i...
2007 Nov 20
5
Compound search / grouping
Hi, Following problem: We have a tree structure with children and a root element (recursivly) stored in one table (imagine a threaded forum). Each of the children has a title which should be indexed by ferret. Now we want to make a search that returns only the root and searches all items. So if one node has "expensive" and nother node has "car" I want to enter