Displaying 20 results from an estimated 700 matches similar to: "store_class_name for Comatose:Page model"
2007 Mar 27
1
multi_search problems
Hello.
I''ve been trying to get multi_search to work and I simply can''t.
I have two models:
Post
acts_as_ferret :fields => [:title, :body], :store_class_name => true
Page
acts_as_ferret :fields => [:title, :body], :store_class_name => true
If I do @results = Post.find_by_contents(params[:q]) or @results =
Page.find_by_contents(params[:q]) it works fine, but if I
2006 Oct 09
7
multi_search problems, Never go away!
Hello, I am trying to use the multi_search method, but I keep getting
type error on nil objects, I send it [Model1,Model2] and it seems as
though the class names keep getting clobbered and turn to nil, somewhere
along the multi_index area. I tried to trace what was going on, but I
got nothing, also, this only happens when there are actually hits(thank
god, most of the time). Perhaps some insight?
2006 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
I''m hoping someone has encountered this before. I''m using AAF trunk and
trying to multi_search across 2 models. It works fine on my windows
(Webricks) dev env but now that i''ve deployed to linux, (Apache,
FastCGI) I''m getting the following error:
ArgumentError ( isn''t a valid directory argument. You should use either
a String or a Directory):
   
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
2006 May 18
1
multi_search problem
I am running into the following error when I try to search across 
multiple models with multi_search()  I have rebuilt the indices and can 
search on each model individually using the Rails console.
Here is the output from the console.
>> Post.multi_search(''new'', [Message, WikiPage])
ArgumentError: wrong number of arguments (1 for 0)
        from 
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
2006 Oct 10
2
Ferret returning too many results
Hi, I just upgraded from acts_as_ferret 0.2/Ferret 0.9.x to 
acts_as_ferret 0.3/ferret .10.9, and i''m getting a strange behavior:
searches are returning far too many results, most of them superflous. 
i''ll paste in my code below, it''s pretty simple. i''m googling like mad, 
and going through both the source and the forums, and having trouble 
finding what could
2007 Mar 31
8
Problem with setting up remote indexing
Hello,
I have been trying to set up the remote indexing for acts_as_ferret and
followed the guide here:
http://projects.jkraemer.net/acts_as_ferret/wiki/DrbServer
I added :remote => true to my models and then specified host and port
for the production environment.
After defining the host/port for production, I tried to run my
development server and received the following error:
2006 Aug 03
1
routeset mapper problem
hello,
I installed a rails app on dreamhost, which I''m building based on the 
Comatose plugin, and it went smoothly for the first version.
Now I uploaded a second version where I broke down the Comatose code 
into a regular rails app, which works alright locally, but can''t get 
routing to work the same as before on the server. I believe I 
double-checked all gotchas mentioned
2007 Sep 28
4
undefined method error
Hi,
I''m running the trunk version with drb server. In my ferret_server.log I
get a lot of messages like this:
#method_missing(:add, ["User", {:first_name=>"blah", :comments=>nil,
:company=>"blah", :phone_day=>""}])
Over and over again.
But more importantly, since yesterday doing a search has caused an
exception:
A NoMethodError
2006 Dec 08
6
QueryParser Exception Handling Problem
According to the following link:
http://ferret.davebalmain.com/api/classes/Ferret/QueryParser.html
:handle_parser_errors => true is enabled by default and seems to be in
acts_as_ferret in class_methods.rb of the plugin. However, when I pass a
special character as a query (e.g., !, -, <, >, etc) it throws an error
and pukes.
-- snip --
Error occured in src/q_parser.y:279 - yyerror
 
2006 Dec 07
5
Search Multiple Models
Hello folks,
I have four models, each with their own separate index.
Models = Articles, Blogs, MusicTracks, and MediaFiles
I have individual searches within each section of the site working just
fine, but I want to have a gloabl search that searches across all of
them at the same time and returns the results ordered by score.
Here''s how far I am now...
def search
   query =
2016 Dec 18
3
PulseAudio is streaming with an excessive latency.
On Sat, 17 Dec 2016, John R Pierce wrote:
> On 12/17/2016 9:18 AM, Michael Hennebry wrote:
>> vlc.x86_64                    2.0.10-1.el6 @rpmfusion-free-updates 
>
> rpmfusion is comatose, that VLC rpm hasn't been updated in a couple years.
Does that imply that I should abandon VLC or just rpmfusion?
This site:
2007 Feb 02
7
Mongrels 1.0.1 falling asleep w/ Rails 1.2
I''m a bit surprised I can''t find anything about this in the mailing  
list archives. Basically since Mongrel 1.0.1 I''ve had Mongrels fall  
asleep without any real cause. A deep sleep, actually more like a  
coma. The mongrel in question (I''m using a cluster of three) can not  
be revived. A cluster::stop, then cluster::start is nessesary.
A ::restart would not
2006 Oct 13
5
multi_search error undefined method
Hi,
Im having problems using the multi_search command. I keep getting the 
following error.
"undefined method `<<'' for Book:Class"
here is the code associated with this.
class Book < ActiveRecord::Base
   acts_as_ferret :store_class_name => true
end
class User < ActiveRecord::Base
   acts_as_ferret :store_class_name => true
end
and the call is the
2006 May 26
1
multi_search will not work
I am trying to get multi_search to search across multiple models.  I 
have the following:
class Drug < ActiveRecord::Base
  acts_as_ferret :store_class_name => true
end
class Target < ActiveRecord::Base
  acts_as_ferret :store_class_name => true
end
and I am trying to query via:
@drugs = Drug.multi_search(params[:query], [Target])
But I get no results.  If I go:
@drugs =
2006 Aug 19
11
Need help with multi_search
I have been trying to use multi_search to search accross multiple 
associated models, but I have had no luck at all. I have scoured the net 
and this forum for all similar posts, but none of them contain enough 
code for me to get it to work.
I am successfully able to search individual models, and then display the 
results without a problem.
I have the following 2 models, Product and Component.
2006 Apr 05
9
Is eval the only way?
Hi,
I''m trying to write some methods which use a parameter to represent a  
Class name.
A very simplistic example:
def foo(class_name, conditions)
   x = class_name.find(:all, :conditions => "#{conditions}")
end
Unfortunately, this does not work. The only way around this problem  
that I can think of is to use eval:
def foo(class_name, conditions)
   x = eval
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''
2007 Jul 04
2
problems after gem update
Hi, I had ferret working wonderfully but i am regretting doing a gem
update today.
I had alot of trouble first installing it and was really happy to have
it working. The upgrade was from 0.3.1 to 0.4.0.
The problem is;
in the rails console,
>> @results = Book.find_by_contents("peter pan")
=> #<ActsAsFerret::SearchResults:0x487040c @total_hits=0, @results=[]>
Its indexing