search for: id_multi_search

Displaying 12 results from an estimated 12 matches for "id_multi_search".

2007 Apr 03
5
Inifinite loop problem with DRb server
...ts_as_ferret :store_class_name => true, :remote => true, :fields => (self.content_columns.map(&:name) rescue []) + %w(main_identifier party_display_name) end # app/controllers/search_controller.rb class SearchController < ApplicationController def quick @results = Email.id_multi_search(params[:q], %w(Contact Company)) end end # Backtrace stack level too deep (druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1649:in `current_server'' (druby://127.0.0.1:3000) /usr/local/lib/ruby/1.8/drb/drb.rb:1704:in `to_obj'' (druby://127.0.0.1:3000) /usr/local/lib/r...
2008 Aug 20
1
acts_as_ferret and DRb server errors
I am seeing this in my ferret_server.log when I do a search: DRb server: ensure_index_exists for class Myclass1 DRb server: ensure_index_exists for class Myclass2 DRb server: ensure_index_exists for class Myclass3 DRb server: ensure_index_exists for class Myclass4 #method_missing(:id_multi_search, ["Myclass1", "test*", ["Myclass4", "Myclass3", "Myclass2", "Myclass1"], {:limit=>:all}]) But everything is working fine. Classes are indexed and searches return the right results. This happens on development and production. Any idea...
2007 Jun 01
2
Is aaf multi_search broken?
...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 #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:131:in `id_multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:113:in `multi_search'' #{RAILS_ROOT}/app/controllers/search_controller.rb:53:in `search'' I have configured indexing like this: acts_as_ferret :fields => [:index_text, :index_locations], :single_index =&...
2007 Mar 27
1
multi_search problems
...following error: nil is not a symbol #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in `const_get'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in `multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:460:in `id_multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in `search_each'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in `search_each'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:457:in `id_multi_search'' #{RAIL...
2006 Mar 17
1
Fuzzy searching using act_as_ferret
Hello, My Ferret integration has gone quite well. I''m now returning all the results I need from two models using "id_multi_search" and combining the results in the view using a couple of partials. Is there any way that I can turn on fuzzy searching? Would fuzzy searching pick up basic spelling mistakes such as "Bnadit" instead of "Bandit" my experience with search technology is quite limited. Ch...
2007 Mar 31
8
Problem with setting up remote indexing
...environment in the ferret_server.yml Here is how it''s setup: development: host: localhost port: 3000 (my rails app port) Sure enough I don''t get that error anymore and my development server boots up just fine. However, when I executed my search it didn''t work (I use id_multi_search btw so need to add :store_class_name => true to my models as well). The following is the error description: DRb::DRbConnError (too large packet 1213486160): C:/ruby/lib/ruby/1.8/drb/drb.rb:573:in `load'' C:/ruby/lib/ruby/1.8/drb/drb.rb:632:in `recv_reply'' C:/ruby/li...
2007 Mar 21
2
store_class_name for Comatose:Page model
...wrong constant name Comatose::Page #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in `const_get'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:438:in `multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:460:in `id_multi_search'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in `search_each'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/multi_index.rb:28:in `search_each'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:457:in `id_multi_search'' #{RAIL...
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 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
2006 May 18
1
multi_search problem
...s_as_ferret/lib/acts_as_ferret.rb:397:in `initialize'' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:378:in `multi_index'' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:364:in `id_multi_search'' from ./script/../config/../config/../vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:353:in `multi_search'' from (irb):1 >> Post.find_by_contents(''new'') => [#<Post:0xb7349984 @attributes=... >> Message.find_by_contents('...
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 =
2006 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
...ins/acts_as_ferret/lib/multi_index.rb:51:in `query_parser'' /vendor/plugins/acts_as_ferret/lib/multi_index.rb:60:in `process_query'' /vendor/plugins/acts_as_ferret/lib/multi_index.rb:26:in `search_each'' /vendor/plugins/acts_as_ferret/lib/class_methods.rb:442:in `id_multi_search'' /vendor/plugins/acts_as_ferret/lib/class_methods.rb:422:in `multi_search'' /app/controllers/search_controller.rb:8:in `query'' Anybody know what might be causing this? Thanks, Dave -- Posted via http://www.ruby-forum.com/.