search for: multi_index

Displaying 10 results from an estimated 10 matches for "multi_index".

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 Dec 16
10
Getting "ArgumentError ( isn''t a valid directory argument.
...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): /vendor/plugins/acts_as_ferret/lib/multi_index.rb:82:in `initialize'' /vendor/plugins/acts_as_ferret/lib/multi_index.rb:82:in `ensure_searcher'' /vendor/plugins/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/...
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? Thank you! -- Posted via http://www.ruby-forum.com/.
2007 Mar 27
1
multi_search problems
..._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'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:437:in `mul...
2007 Mar 21
2
store_class_name for Comatose:Page model
..._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'' #{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:437:in `mul...
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/.
2006 Oct 14
9
How can I do my own search limits?
I''m trying to add a way to query across associations for a model in acts_as_ferret. Say I have a model A and it has a relationship with model B. Like say a Book has many pages. I want to search across the pages of the Book and produce a list of unique books who''s pages match the terms. So if I have a page that hits then I will add that book to my list of results. Right
2006 May 18
1
multi_search problem
...as_ferret/lib/acts_as_ferret.rb:406:in `ensure_reader'' from ./script/../config/../config/../vendor/plugins/acts_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 >&...
2007 Jul 04
1
[LLVMdev] Boost Support
...change and deserves lots of scrutiny. But there is a ton of good stuff in there that is really useful for compiler work. In my own work I've made use of tuples, BGL, MPL (very limited), bind (also in tr1), optional, io_state_savers, iterators, static_assert, and will probably soon be using multi_index to improve algorithmic complexity. A smaller step would be to accept tr1 things. I'm not making a big push for Boost or tr1, just raising the question to start a discussion about the long-term direction of the project. -Dave
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 =