Displaying 20 results from an estimated 40000 matches similar to: "How do I force loading of a non-default library?"
2006 Apr 03
6
Installing Ferret locally on TextDrive
I would like to give the 0.9.0 version of Ferret a try on my
application hosted on TextDrive. I am currently running on the 0.3.2
version there.
Does anyone have any tips on installing it locally there? I know just
enough about Ruby gems to get by... but I am thinking it could be as
easy as passing a -i flag to specify the install location for ferret.
Then, the only thing I am not sure about
2007 Jul 24
1
Why can''t find index file sometimes?
I''m using ferret and acts_as_ferret,i can success save record,but
sometimes when i update record,index not found error occurred(not
always).I don''t know why:(
[quote]
File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
tried to open "/home/dev/www/index/development/rcu/_12q.cfs" but it
doesn''t
2007 Jan 21
2
Help with Installation on OpenSolaris (TextDrive Containers)
Gents,
I installed ferret successfully in my MacOS (rails development) using
the gem install. I did some tests and everything worked fine.
Then I tried to install it on the same way on my production environment
at TextDrive? running OpenSolaris? (container). This time ''gem install
ferret'' seems to be completed:
[92140-AA:~/web/labs/blogblogs/trunk] root# gem install ferret
2006 Oct 03
4
newbie question
Hi,
I''m new to using ferret (and fairly new to ruby/rails) and I''m having a
problem I can''t fathom. Sorry for the long post ...
I have a test which passes
require ''rubygems''
require ''ferret''
include Ferret
require ''test/unit''
class CompanyTest < Test::Unit::TestCase
def test_index
puts ''running
2006 Oct 03
4
newbie question
Hi,
I''m new to using ferret (and fairly new to ruby/rails) and I''m having a
problem I can''t fathom. Sorry for the long post ...
I have a test which passes
require ''rubygems''
require ''ferret''
include Ferret
require ''test/unit''
class CompanyTest < Test::Unit::TestCase
def test_index
puts ''running
2007 Jan 11
1
Ferret Locking issues
Dave and all,
I run a medium RoR app using Ferret and acts_as_ferret. I get a lot of
lock errors. Not always but around 5% of all searches (aspecially during
peak periods). Here are the messages I get:
A NameError occurred in szukaj#index:
uninitialized constant Ferret::Index::Index::LockError
[RAILS_ROOT]/vendor/rails/activesupport/lib/active_support/dependencies.rb:478:in
2007 Apr 13
5
[Ferret] Serious memory leak on Joyent / TextDrive / Solaris
There is serious memory leak bug in ferret. I''m having this error on
TextDrive Container (aka. Joyent Accelerators) OpenSolaris with Ferret
0.11.4
It happens while searching for some terms with accented or special
characters.
This makes ferret to allocate lots of memory (usually reaching 3+ GB)
and failing if another query like this is executed.
Any ideas on that, could this be locale
2006 Dec 01
2
Ferret on Apache Installation
Hi,
had my local linux box setup and ferret was working like a champ via
Webrick.
However, when I moved to a different linux box using Apache web server,
search no worky..giving the error listed below. The site itself comes up
fine.
I''ve tried deleting all the dirs under /index and restarted the
webserver to see if re-indexing would help, but that made matters worse.
Re-indexing
2007 Jan 27
0
concurrency errors adding to a keyed index
Hi,
I''m adding some news articles to a keyed Ferret 0.10.14 index and
encountering quite serious instability when concurrently reading and
writing to the index, even though with just 1 writer and 1 reader
process.
If I recreate the index without a key, concurrent reading and writing
seem to work fine (and indexing is about 10 times quicker :)
I''m testing by running my indexing
2006 Mar 29
2
Textdrive Rails 1.1 Error - Dependencies::LoadingModule
Textdrive upgraded to Rails 1.1 already.
I have an older rails app, and am now getting the following error:
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0
/lib/active_support/depende
ncies.rb:112:in `const_missing'': uninitialized constant LoadingModule
(NameEr
ror)
from ./script/../config/environment.rb:91
from
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
2006 Jul 07
4
Help installing Ferret
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
I followed everything here but at the last I get when loading page
get_results
Can only handle a String or a Query.
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/models/result.rb:27:in `search_each''
#{RAILS_ROOT}/app/models/result.rb:27:in `search_index''
2005 Dec 14
2
undefined method `add'' for Ferret::Search::BooleanQuery
Up to now in my ferret development I have been using simple
single-word strings as my search queries. I just now am trying to
increase the complexity of my queries. When I was passing a single
word with no spaces in my index searches, like so:
count = index.search_each(''testing'') do |d, s|
...
end
everything worked fine. But now when I do something like this:
count =
2006 Jun 06
1
stack level too deep
Iam new to ferret Iam trying to do a sample application on ferret
this is my code:
class SearchController < ApplicationController
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/path/to/index'')
def list
end
def index
index << {:title => "Programming Ruby", :content => "blah blah
blah"}
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)
2007 Mar 25
1
kind of stuck with new version of ferret gem
....
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:201:in
`send''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:201:in
`rebuild_index''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:198:in
`rebuild_index''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:197:in
`rebuild_index''
2006 Apr 22
2
Ferret C Indexer Error: Fields not stored in index?
Hello,
I am trying to get Ferret''s C indexer to work on OpenSUSE 10 and
fastcgi.
Indexing documents appears to work correctly but when I try to display
the results I recieve the following error:
ActionView::TemplateError (undefined method `string_value'' for
stored/uncompressed,indexed,tokenized,<title:Revit.jpg>:Ferret::Document::Field)
on line #17 of
2006 Sep 12
1
Ferret on Windows?
I am trying to use SVN HEAD of Acts_as_ferret, and I have ferret
0.10.4installed from the windows Gem.
Unfortuanantly, whenever I i let act_as_ferrets init.rb file require ferret,
my app blows up, with weird "Invalid char" errors. I have pasted the page
below. If I comment out the require ferret, the page loads. Of course,
act_as_ferret does blow up.
My unit tests do work fine
2006 Mar 29
5
EdgeRails: "undefined method `weight'' for #<Hash:
Hi all,
I was playing with the sample project found on the Wiki at
http://wiki.rubyonrails.com/rails/pages/HowToIntegrateFerretWithRails
, and everything was working fine, ... till I moved to EdgeRails :
undefined method `weight'' for #<Hash:0x22c7150>
(full error thread below)
Any idea?
Alain
2007 Jun 28
1
DRb server crashing
I''m having a problem where the DRb server seems to be disappearing
(crashing?) and I don''t know how to track down the cause or work around
the problem.
Unfortunately I haven''t found a way to reproduce the problem, but it
seems to happen fairly often (maybe once a day). Other then that ferret
seems to be working well.
I can''t seem to find any trace of the