Displaying 20 results from an estimated 10000 matches similar to: "How do you create the first index?"
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''
2006 Aug 17
3
Ferret locks up when adding items to an index
I''m running Ferret 0.9.5 on a MacBook Pro (OS X 10.4.7) under
Locomotive 2.0.7.
I have a problem where Ferret is hanging when I try to add items to
the index. It doesn''t happen with every object that''s being indexed,
and I''m not sure what the objects in question have in common (they
are not all instances of the same ActiveRecord object). The process
2006 Aug 10
1
Indexing weirdness
Hi,
I''m having some problems with acts_as_ferret and indexing. I''ve got a
simple 5 column table, and a corresponding Ruby model. I loaded 9 rows
directly into the table using mysql (for live it''ll be about .5mil rows)
and configured a Rails search page along the exact same lines as
ferret_demo.
Unfortunately, search wouldn''t return any results; following
2006 Aug 10
1
Timeout when rebuilding index
Sorry to post twice in a row, but I also wanted help with my index
rebuild process - I seem to be getting timeouts when I run the
rebuild_index.rb script, like this:
/opt/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log'': Mysql::Error: Lost connection to MySQL server during query:
SELECT * FROM search_queries
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
2006 Apr 13
10
Typo and acts_as_ferret rebuild_index errror
Hi, I''m running the edge Typo and the latest acts_as_ferret plugin and
ferret gems (as of 11 April).
In my Content model I put acts_as_ferret :fields => [:title, :body]
In the console, I call Content.rebuild_index to index all of my existing
content. All the directories get created etc, but I get the following
error back:
Loading development environment.
>>
2006 Aug 02
4
Model still using mysql
When calling a Result.find_by_content on my model, I get the following
error:
Mysql::Error: Table ''db.results'' doesn''t exist: SHOW FIELDS FROM results
Yes, I remembered to put acts_as_ferret. Any ideas?
Trace:
2007 May 22
1
acts as ferret, make index in /tmp then copy back to avoid NFS slowness?
Hi,
We''re happily using Ferret through acts_as_ferret on a Rails website,
but we have an issue with rebuilding indexes.
The Rails project directories are on an NFS mounted volume and
running Model.rebuld_index there seems to take 60-100 times longer
than it does on a local filesystem (e.g. /tmp).
What we''d like to do is rebuild our indexes in say /tmp, then copy
them back when
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 Jun 18
2
"No such file or directory - script" Error on Model.rebuild
Hi,
Having recently converted to using ferret_server on my staging site my
deployment is now failing due to the following error when attempting to
rebuild the indexes on my models:
from (irb):1>> Post.rebuild_index
Errno::ENOENT: No such file or directory - script
from (druby://127.2.0.1:9100)
/usr/local/lib/ruby/1.8/fileutils.rb:243:in `mkdir''
from (druby://127.2.0.1:9100)
2007 Jan 21
14
[ActsAsFerret] OpenSolaris (TextDrive) indexing issues
Gents,
I successfully installed AAF on my TextDrive OpenSolaris Container, but
I''m having some issues with indexing.
I have a model called Blogs which has AAF enabled.
The first time I tried to find_by_contents for a ''word'' I know was on
the Database I got now results. Apparently the index was not ready yet.
Then I waited a few hours and checked that the /index
2007 Mar 28
7
Newbie problem on production server
Hi,
I just installed ferret for the first time and integrated it with my
app. On my dev machine it''s fine but on my production server I get this
when I call find_by_contents():
Processing LinksController#results (for 24.185.105.59 at 2007-03-28
05:28:36) [POST]
Session ID: 3f2dc7c17147c0e52178ba697a119833
Parameters: {"commit"=>"Search",
2006 Sep 01
3
Ferret/acts_as_ferret don''t seem to be doing anything
I''m having an odd problem with Ferret 0.9.5 and acts_as_ferret 0.2.3, on
RedHat Linux Enterprise 4.
All of my find_by_contents calls return 0 results. When I try
Foo.rebuild_index via the console, it returns nil.
This is happening on my production machine, during deployment of my app.
Everything works perfectly on my development machine (Windows).
I have no idea where to start
2007 Feb 05
2
rebuild_index is returning {}
Previously when I used to build index i used to get false in return.
>> Event.rebuild_index
=> false
Now I get this.
>> Event.rebuild_index
=> {}
Following changes took place.
1) I moved my app from FCGI to mongrel.
2) I moved my app to capistrano.
Before moving to capistrano the code was
acts_as_ferret :fields => [ "name", "desc_uf" ]
Now the code
2006 Jul 21
3
segfaulting at rebiuild_index
Hello,
I can''t figure out how to get acts_as_ferret to stop segfaulting.
Every time i run a query on my server (rails 1.1.4 and ferret .9.4 and
aaf from svn) I get a segfault
./script/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:243:
[BUG] Segmentation fault
this line is where the indx is rebuilt.
"
def rebuild_index(*additional_models)
2007 Mar 19
7
Many index files
I''m using acts_as_ferret and have indexed a model with acts_as_ferret
:fields => [:name, :ascii_name, :alt_names], :single_index => true.
Now in the index directory more than 95.000 files are generated! The
number of tuples I''m indexing is approx. 86.000.
I can''t remember this from earlier ferret/acts_as_ferret versions where
I''ve indexed millions of
2007 Feb 25
3
Acts _As_Ferret - How to confirm Indexing is complete?
Hello I have a couple of questions, Hope someone here can help answer
them.
I am using acts_as_ferret on a model Item with around 10 million rows.
I use Item.rebuild_index at the ruby console to build the index. It
seems to run for at least 48 hours when building.
My questions are:
1) How do you know when the indexing is over and complete?
2) How can you confirm that ALL records in the table
2007 Jun 24
4
Resetting ferret index before test runs
I need to reset the ferret index between test runs.
It seems like there are a few ways to reset the ferret index.
* Deleting the index directory -- is this really bad form?
* calling rebuild_index
* (any others?)
What would y''all recommend? (Sorry, I''m from Texas)
Preferably, I''d like a way to reset the index that I can integrate
into a selenium test.
-David
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all,
I cannot make aaf (rev. 220) use my custom analyzer, despite following the
indications @
http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage
To pinpoint the problem, I created a model + a simple analyzer with 2 stop
words : "fax" and "gsm".
test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a
stop word.
=> I get a