search for: rebuild_index

Displaying 20 results from an estimated 97 matches for "rebuild_index".

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 cod...
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. >> Content.rebuild_index NameError: undefined method `title'' for class `Comment'' from ./script/../config/../config/../ve...
2007 Apr 22
0
rename error using rebuild_index in console after searching
Hi, I use ruby console to experiment acts_as_ferret, but I ran into file rename error when I try to rebuild index after doing a search. is this normal? I am using Ferret 0.10.9 in windows XP. Loading development environment. >> Address.rebuild_index => {} >> Address.find_by_contents(''US'') => #<ActsAsFerret::SearchResults:0x4f2ffcc @total_hits=2, @results=[#<Address:0x 4f30198 @ferret_score=0.106434106826782, @ferret_rank=1, @attributes={"city"=>"" , "updated_at"=>"200...
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 Jan 21
14
[ActsAsFerret] OpenSolaris (TextDrive) indexing issues
...he Database I got now results. Apparently the index was not ready yet. Then I waited a few hours and checked that the /index directory was receiving no changes, so the indexing was not happening also. Then I tried to re-index and I got the following error after a few hours of work: >> Blog.rebuild_index IOError: IO Error occured at <except.c>:79 in xraise Error occured in fs_store.c:324 - fs_open_input couldn''t create InStream script/../config/../config/../index/production/blog/_73j.fdx: <No such file or directory> from /opt/csw/lib/ruby/gems/1.8/gems/ferret-0...
2006 Nov 07
1
Memory consumption too high
...;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 blows up horribly with a NoMemoryError. I''m running it from the script\console. Here is the stack trace from runnning MyObject.rebuild_index D:/dev/ruby/lib/ruby/gems/1.8/gems/ferret-0.10.9-mswin32/lib/ferret/index...
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
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 (ActiveRecord::StatementInvalid) from /o...
2007 Jun 08
13
Errror on update after Model.rebuild_index
Hi I use Ferret 0.11.4 and the latest stabel version of the acts_as_ferret plugin. To the issue. if I do Model.rebuild_index and after that try to update one of my objects of that Model I get: 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 "/Users/mattias/Sites/thm/photo_archive/index/development/asset/_b.cfs" but it doesn...
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 were indexed? (especially since the table runs into millions of records)...
2007 Apr 01
1
rebuild_index fails on some models using aaf
...ex/production, tho) and in the production log, I get LoadError (Expected script/../config/../app/models/summary.rb to define Summary): (I can give you the full trace, but something tells me I must be doing something really stupid here...) I''ve tried this with another model as well, and rebuild_index always fails with a similar undefined method `_'' . These are pretty simple models, used mainly for holding text data that can be versioned and used by other Models... Any clues? Cheers, Fabio. -- Posted via http://www.ruby-forum.com/.
2007 Apr 06
3
Double work at Model.rebuild_index
I''m noting that every time I run Model.rebuild_index its running twice the rebuild_index. Also, on ferret_index.log there is only one small difference from the first and second time, see: First time it shows: rebuild index: [] reindexing model User After it finishes, it automatically starts the second time and shows; rebuild index: [["User&q...
2006 Apr 28
0
Ferret failing to rebuild_index - occasionally unable to delete a file (_j.cfs)
I''m switching all my fulltext searching over to ferret using the acts_as_ferret plugin on windows (for development, will be deployed on linux). In my tests I have a setup method as follows to ensure the index is reset for each test: def setup Item.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be failing to delete a file. Loaded suite E:/rails/thatsprogress/test/unit/item_test Started ........EEEE Finished in 8.922 seconds. 1) Error: test_search_for_count(ItemTest): Errno:...
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'' /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abs...
2007 Apr 07
19
Constant 0.11.4 Errors
Folks, Since upgrading to ferret 0.11.4 on Mac OS X Tiger, I''ve been running into constant crashes when running my Rails tests. Here''s an example of the output. -- snip -- 1) Error: test_published_blog_can_be_ferreted(BlogTest): Ferret::FileNotFoundError: File Not Found Error occured at <except.c>:117 in xpop_context Error occured in fs_store.c:329 - fs_open_input
2006 Aug 17
3
Ferret locks up when adding items to an index
...in `synchronize'' from /Applications/Locomotive2/Bundles/rails112.locobundle/ i386/lib/ruby/gems/1.8/gems/ferret-0.9.5/lib/ferret/index/index.rb: 258:in `<<'' from ./script/../config/../config/../vendor/plugins/ acts_as_ferret/lib/acts_as_ferret.rb:251:in `rebuild_index'' from ./script/../config/../config/../vendor/plugins/ acts_as_ferret/lib/acts_as_ferret.rb:250:in `rebuild_index'' from ./script/../config/../config/../vendor/plugins/ acts_as_ferret/lib/acts_as_ferret.rb:249:in `rebuild_index'' from /Applicatio...
2006 Apr 28
5
Ferret failing to rebuild_index - occasionally unable to del
I''m switching all my fulltext searching over to ferret using the acts_as_ferret plugin on windows (for development, will be deployed on linux). In my tests I have a setup method as follows to ensure the index is reset for each test: def setup Item.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be failing to delete a file. Loaded suite E:/rails/thatsprogress/test/unit/item_test Started ........EEEE Finished in 8.922 seconds. 1) Error: test_search_for_count(ItemTest): Errno::...
2006 Nov 21
14
Starting from scratch
I have the following models: === class Person < ActiveRecord::Base has_many :person_organisations, :dependent => true has_many :organisations, :through => :person_organisations has_many :person_categories, :dependent => true has_many :categories, :through => :person_categories end class Category < ActiveRecord::Base has_many :person_categories, :dependent => true
2006 Nov 20
22
Index only partially built
I have an application which I''m running using Mongrel and Apache as described here http://www.napcs.com/howto/rails/deploy/. I have a model Person which I am attempting to use acts_as_ferret with. When I first try to do a search the index begins to get built but it its fails halfway through with the following error in the browser: === Proxy Error The proxy server received an invalid
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",