search for: single_index

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

2007 Apr 06
2
Advantages of using :single_index ?
Hi all, Google returns two results for this: http://www.google.ca/search?q=acts_as_ferret+shared_index+option&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a Both point to the ChangeLog, so I don''t really know if anybody used a shared index. From the RDoc, I know the option makes AAF "use a Ferret index that is shared by all classes..."
2007 Jun 01
2
Is aaf multi_search broken?
...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 => true acts_as_ferret :fields => [:index_text, :index_locations], :single_index => true Maybe I''m doing something wrong? Thanks, Starburger -- Posted via http://www.ruby-forum.com/.
2006 Nov 30
1
usage and benefits of single-index with AAF
The documentation states: "single_index: set this to true to let this class use a Ferret index that is shared by all classes having :single_index set to true. :store_class_name is set to true implicitly, as well as index_dir, so don?t bother setting these when using this option. the shared index will be located in index/<RAILS...
2008 Jan 02
4
utility of default_field
The documentation* states that when using a single index for multiple models, the default_field list should be set to the same thing for all models. However, in my application, all my models have very different fields and this is not possible. I still want the results returned sorted by term frequency across all indexed content in each model. What is the purpose of default_field? Under
2007 Aug 07
2
Varying case sensitivity
...g ferret 11.4 together with acts_as_ferret and I''ve indexed the geonames.org country files. These files contain worldwide locations in UTF-8 with all their different spellings each. Model definition is like this: class location acts_as_ferret :fields => {:location_names => {}}, :single_index => true ... end The instance method location_names returns a string containing all the different, UTF-8 coded spellings for this location. Problem: Sometimes the search is case sensitive and sometimes not. E.g. it finds "stuttgart" and "Stuttgart". It finds "M?nche...
2007 Jan 17
5
[ActsAsFerret] Globalize integration
...ew files, I''m still trying to think of the best way to make this available to others. If others think this is worthwile, I''d be interested in adding this as something optional to acts_as_ferret. P.S. Currently, I''ve added the option like so: class Foo acts_as_ferret :single_index => true, :store_class_name => true, :localized => true, #=> this activates the option. :fields => {...} end Regards, Saimon (http://saimonmoore.net) -- Posted via http://www.ruby-forum.com/.
2007 Mar 19
7
Many index files
I''m using acts_as_ferret and have indexed a model with acts_as_ferret :fields => [:name, :ascii_name, :alt_names], :single_index => true. Now in the index directory more than 95.000 files are generated! The number of tuples I''m indexing is approx. 86.000. I can''t remember this from earlier ferret/acts_as_ferret versions where I''ve indexed millions of tuples without having such a number of file...
2007 Apr 15
2
"tried to use a closed index"
...opment mode. I installed ferret 0.11.0 gem, and the most recent stable aaf plugin (as of today). I''m having trouble getting the most basic functionality working. In my model Recipe, I have: acts_as_ferret :fields => [:handle, :introduction, :ingredients, :steps], :single_index => true In my search controller, I have: @results = Recipe.find_by_contents(params[:search_query]) If the index doesn''t exist yet, then the above will do the following: 1. throw the following error: RuntimeError (tried to use a closed index): /usr/local/lib/ruby/gems/1.8/gems/f...
2007 Nov 13
8
acts_as_ferret : cannot use a customized Analyzer (as indicated in the AdvancedUsageNotes)
Hi all, I cannot make aaf (rev. 220) use my custom analyzer, despite following the indications @ http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage To pinpoint the problem, I created a model + a simple analyzer with 2 stop words : "fax" and "gsm". test 1 : model.rebuild_index + model.find_by_contents("fax") # fax is a stop word. => I get a
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 =