search for: ferret_use_local_index

Displaying 14 results from an estimated 14 matches for "ferret_use_local_index".

2007 Oct 05
5
DRbConnError when using script/runner
I am running ferret (0.11.4) and acts_as_ferret (stable from svn) in a rails 1.2.3 app in production using the DRb server. I recently upgraded my configuration and the method with which I start and stop the server no longer works: Here is the command I would like to use (and have used in the past) to start the aaf server: $ /Library/WebServer/rails/ccdb/current/script/runner -e production
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
2007 Apr 23
1
Launching DRb server on reboot: solved
...server # chkconfig: 2345 89 36 # description: Ferret search engine for ruby apps. # # save the current directory CURDIR=`pwd` PATH=/usr/local/bin:$PATH RORPATH="/path/to/ror_root" case "$1" in start) cd $RORPATH echo "Starting ferret DRb server." FERRET_USE_LOCAL_INDEX=1 \ script/runner -e production \ vendor/plugins/acts_as_ferret/script/ferret_start ;; stop) cd $RORPATH echo "Stopping ferret DRb server." FERRET_USE_LOCAL_INDEX=1 \ script/runner -e production \...
2007 Sep 10
1
Asked for a remote server ? nil, ENV["FERRET_USE_LOCAL_IN...
Hello, I know this subject as been talked many time, but i can not figure out how to get rid of this... ENV : ruby 1.8.4, ferret 0.11.4, acts_as_ferret 0.4.1 under win32 Error : Asked for a remote server ? nil, ENV["FERRET_USE_LOCAL_INDEX"] is nil, looks like we are not the server Will use local index. My application is working find, with 4 mongrels, but i got this message on every request... I tryed to add the following at the end of my environment.rb file, without sucess. FERRET_USE_LOCAL_INDEX=1 # didn''t do an...
2007 Jul 25
17
DRb not starting
Hi, I have my Model as follows: class Mutation < ActiveRecord::Base acts_as_ferret ({:fields => {:description=>{}, :product_id=>{:index => :untokenized}, :product_description=>{}, :product_label_description=>{}, :product_label_free=>{}, :product_product_id_supplier=>{}, :product_description_supplier=>{}, :supplier_description=>{}, :pub_date_sort
2007 May 02
2
Index update - problems
...ntil at some point it takes 99% and doesn''t let other processes use it :) I''m forced to restart mysqld. Then again it works for a while, but then after some new rows problems begin. I''m using :remote => true for my models I started my ferret server with this command: FERRET_USE_LOCAL_INDEX=1 RAILS_ENV=production ruby script/runner ''load "script/ferret_start"'' Has anyone else bumped into this kind of behaviour? Any ideas what might be causing it? Regards, Antti -- Posted via http://www.ruby-forum.com/.
2008 Jan 25
2
strange capistrano problem
When trying to start ferret with capistrano, I keep getting this: $ cap services:ferret:stop domain [redken.digitalpulp.com] : user [john] : * executing `services:ferret:stop'' * executing "cd /srv/rails/redken/current; script/ferret_server -e production stop" servers: ["redken.digitalpulp.com"] Password: [redken.digitalpulp.com] executing command ***
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
...=> I get a results, when I should not : >> reload!; AccessPointKind2.rebuild_index ; AccessPointKind2.find_by_contents("gsm").collect &:name Reloading... AccessPointKind2 Columns (0.002963) SHOW FIELDS FROM access_point_kinds2 Asked for a remote server ? true, ENV["FERRET_USE_LOCAL_INDEX"] is nil, looks like we are not the server Will use remote index server which should be available at druby://localhost:9010 default field list: [:name] AccessPointKind2 Load (0.002706) SELECT * FROM access_point_kinds2 WHERE (access_point_kinds2.id in (''7'',''12...
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 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 18
1
DRb Server can not run!
..._ferret/script/ferret_start vendor/plugins/acts_as_ferret/script/ferret_start:21:in `require'': no such file to load -- vendor/plugins/acts_as_ferret/script/../config/boot (LoadError) from vendor/plugins/acts_as_ferret/script/ferret_start:21 ferret_start content 20 ENV[''FERRET_USE_LOCAL_INDEX''] = ''true'' 21 require File.dirname(__FILE__) + ''/../config/boot'' 22 require RAILS_ROOT + ''/config/environment'' I do not know why! -- Posted via http://www.ruby-forum.com/.
2007 Apr 20
1
Launching DRb server on reboot
I''m hoping for a little insight. We''re using ferret with DRb server and having a hard time getting it to come back up on reboot of the machine. In our RAILS_ROOT directory, we''ve got a script named start_ferret. Here''s the content: #!/bin/bash FERRET_USE_LOCAL_INDEX=1 script/runner -e production vendor/plugins/acts_as_ferret/script/ferret_start (that''s all one line) If I wait until the server is done rebooting, and run this script myself, I never have any problem. So the next step was trying to make sure DRb server comes back up if the server rebo...
2007 Apr 18
1
stack level too deep for method missing when using drb
I set up ferret and it''s running fine normally. Now I want to hook up the backgroundrb server. However whenever I try to do a search, I get this error: (druby://localhost:9010) /usr/local/lib/ruby/1.8/drb/drb.rb:1075:in `method_missing'' (druby://localhost:9010) ./vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:in `find_id_by_contents'' (druby://localhost:9010)
2008 Jan 21
4
Rails app cannot connect to Ferret server
...i/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 starting the Rails application (with mongrel) and fetching a page, I get the following errors in the log: Asked for a remote server ? true, ENV["FERRET_USE_LOCAL_INDEX"] is nil, looks like we are not the server Will use remote index server which should be available at druby://localhost:9010 Ad Columns (0.004026) SHOW FIELDS FROM `ads` default field list: [:keywords, :family_tree_other, :description, :sex, :top_ad, :background_color, :family_tree, :notifi...