Displaying 20 results from an estimated 1000 matches similar to: "multi_search problems"
2007 Mar 21
2
store_class_name for Comatose:Page model
Hi,
I have three models: Comatose::Page, Article and Product.
In all of them, store_class_name is set to true.
Now, when i do:
results = Comatose::Page.multi_search("*", [Article,Product], options)
I get:
wrong constant name Comatose::Page
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in
`const_get''
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 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 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):
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 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 Sep 20
5
acts_as_ferret limit on multi_search not working?
I''m using acts_as_ferret to do a query like this:
Model1.multi_search("my query",[Model2,Model3], :limit => 2)
No matter what number i set limit to I get 10 items in the resultset. Am
I doing something wrong?
Thanks/David
--
Posted via http://www.ruby-forum.com/.
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:
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 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 Oct 15
0
Inconsistent results between multi_search and find_by_contents (is "other" a reserved word?)
I have a Computer type and I''m trying to query agianst it. When I do
the query with find_by_contents, I get correct results. However, when
I query using multi_search, I get incorrect results.
I''m using the most recent version of Acts As Ferret and Ferret
This returns the correct results:
Computer.find_by_contents( "device_type:laptop AND os_type:other" )
This
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 Oct 10
1
sorting results with aaf multi_search
Is it possible to sort the result of acts_as_ferret multi_search the
way you can with find_contents?
I''m using the latest ferret and aaf. I have an interface that offers
multiple search options which search different fields of a single model.
In addition to these, I also have an "all" search type which is meant to
pull in one additional model and consider all indexed
2007 Jun 24
6
I only want one type of model returned from a multi_search
I am trying to use acts_as_ferret''s multi_search to search across
multiple models, but i only want it to return one type of model.
for example i have a page that lists out people. on this page it shows
email addresses and phone numbers. I want to be able to search by any
fields directly from the person model and search the fields from the
email_address and phone_number models, but I only
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.
2007 Aug 18
0
Problem with multi-search
Hi all,
I have indexes on 2 models
e.g Message model
acts_as_ferret(:store_class_name => true,
:fields =>{:message => {:store => :compressed},
:felix_user_id => {:index
=>:untokenized_omit_norms,:store => :no})
and the chat model acts_as_ferret(:store_class_name => true,
:fields => {:name => {:store =>
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 Oct 03
3
Pagination problem with acts_as_ferret
Hi,
am using this wonderful plugin acts_as_ferret and according to the
tutorial at http://railsenvy.com/2007/2/19/acts-as- ? rial#basic
I worked it out except the pagination feature.
If I have 12 records and I give limit to 10, its correctly displaying 10
records in the first page and is giving the link to the second page too.
But when I go to the next page I find the same 10 records instead of