similar to: Errror on update after Model.rebuild_index

Displaying 20 results from an estimated 1000 matches similar to: "Errror on update after Model.rebuild_index"

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. >>
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",
2007 Jun 04
5
Sorting and getting occurrences of search in hit
Is there any way you could get the number of occurrences of the search in one hit? In a result I get the ferret_rank and ferret_score but not how many hits the search generated in the current record. I would also like to be able to sort after this when I search. /mattias -- Posted via http://www.ruby-forum.com/.
2007 Nov 10
1
Ferret-talk Digest, Vol 25, Issue 3
Thanks Stuart. I thought I had read somewhere that rebuild_index built the index in a different location and then swapped it, but after looking at the code (in local_index.rb) this doesn''t appear to be the case. That might explain why the ferret server crashes sometimes when a search takes place during a reindex. I wouldn''t be doing exactly the same thing as this but
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
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 +
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
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 Mar 22
1
Make ferret serach for english words like "and"
I use ferret on a danish site where I would like ferret to search word like "under" and "and". These are words that are excluded by ferret but have a different meaning in danish. Can you dissable this in ferret? Cheers Mattias -- Posted via http://www.ruby-forum.com/.
2007 Apr 01
1
rebuild_index fails on some models using aaf
I''ve been running the super latest AAF plugin with a mongrel cluster/ferret_server combo smoothly for a few days in production mode, indexing 4 models with no surprises. Only now when I try including some new Models to be indexed, the ferret_server fails to index with ferret server error undefined method `_'' for Summary:Class (it creates the dir on index/production, tho) and
2006 Sep 05
15
ferret finds ''tests'' but not ''test''
Hello all, Quick question (possibly!) - I''ve got a few records indexed and doing a search for ''test'' reports in no hits even though I know the word ''tests'' exists in the indexed field. Doing a search for ''tests'' produces a result. I would have thought that ''test'' would match ''tests'' but no such
2009 Jan 21
5
Runner suddenly fails...
I have some jobs running through cron jobs and runner that suddenly starts failing. This is how it looks: from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/runner.rb:47 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from
2006 May 19
1
database.yml and encoding: utf8 -> mysql error
I have Rails 1.1, MySql 5.0 and would like to stor text as utf8 in the db. I have changed the character set and collation in the db to utf8 and utf8_danish_ci - also checked the mysql to if its ok: show collations like "%danish%"; utf8_danish_ci utf8 203 Yes 8 I then add the following environment.rb: $KCODE = ''u'' require ''jcode'' och database.yml
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 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,
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"]] reindexing model User The full
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
2007 May 22
6
Ferret file not found error on item delete
Hi ferreters: I''ve already posted this in rails, but someone there suggested this would be better. I''m getting a ferret error when I try to delete any item that has been previously indexed. I just installed ferret, so the indexes aren''t big or anything. What I''m trying to do is to just delete an item on a table that has been index. Here''s the error
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
2007 Jun 01
2
Is aaf multi_search broken?
Hi all, I want to use acts_as_ferret''s multi_search to search two model classes (Reviewable and Blog) at a time like @results = Reviewable.multi_search("jemen", [Blog]) and I''m always getting the error You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.map