search for: with_positions_offset

Displaying 9 results from an estimated 9 matches for "with_positions_offset".

Did you mean: with_positions_offsets
2006 Sep 25
0
Odd indexing issue
...176 p`0\010" ---------------from entry.rb def self.create_ferret_index() field_infos = Ferret::Index::FieldInfos.new(:store => :no, :index => :yes, :term_vector => :no, :boost => 1.0) field_infos.add_field(:name, :store => :no, :index => :yes, :term_vector => :with_positions_offsets, :boost => 10.0) field_infos.add_field(:address, :store => :no, :index => :yes, :term_vector => :with_positions_offsets, :boost => 1.0) field_infos.add_field(:tags, :store => :no, :index => :yes, :term_vector => :with_positions_offsets, :boost => 5.0) field_infos....
2006 Sep 03
9
using highlight from aaf
Hi, I''m trying to use highlight ferret method with trunk aaf and 0.10.1 ferret. In my search display I use: Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id, :content) * searcher is a protected method; how can I access to the searcher from aaf ? * is the doc id in aaf the same as my model id ? * is the first param, query, the string query or the query object ?
2007 Jun 12
5
index browser inconsistent with IndexReader
Hi, We have an index of around 1M web pages as part of our web app. The app uses ferret by way of RDig to perform searches. We have noticed anecdotally that some searches don''t work the way we thought they should, as if documents were missing from the index. Yesterday we came upon a concrete instance of this. Our documents have several fields, one of which is called :keywords and
2007 Apr 10
8
ferret-0.11.4-mswin32 not compatible with Ruby1.8.4
Just a quick note for future reference - at least for me, ferret won''t work on Ruby 1.8.4. gem install ferret Successfully installed ferret-0.11.4-mswin32 ruby -v ruby 1.8.4 (2005-12-24) [i386-mswin32] irb irb(main):001:0> require ''ferret'' A windows error message box appears - ruby.exe - Entry Point Not Found The procedure entry point rb_w32_write could not be
2006 Nov 17
4
undefined method `exists?''
Anyone ever run into this error message when creating a new FieldInfos? Ferret::Index::FieldInfos.new(:store=>:no) NoMethodError: undefined method `exists?'' for {:store=>:no}:Hash -- Posted via http://www.ruby-forum.com/.
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 Jun 04
20
Proposal of some radical changes to API
...you store offsets, always store offsets 5. Once you store norms, always store norms So currently if you add a field like this (I''ll use the newer notation as it''s easier to type); doc << Field.new(:field, "data...", :index => :yes, :term_vector => :with_positions_offsets) And later add a field like this; doc << Field.new(:field, "diff...", :index => :no, :term_vector => :no) This field will be indexed and it''s term vectors will be stored regardless. This is good because if you are using TermVectors in a particular field then y...
2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
I''m trying to sort my search results by Date, in descending order. I''ve done quite a bit of reading through the forums here, and I''ve tried two different suggestions. This just returns results in the same order as a search without a sort: sort_fields = [] sort_fields << Ferret::Search::SortField.new("ferret_created_at",:reverse => :true)
2006 Sep 18
16
Dynamic fields and AAF
Hi, I have a model which has properties, these are your standard name/value pairs, but also have attributes that affect how I want to store them in ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just copied and pasted (yes, I know, ick) the to_doc method and added code to iterate though the properties that that model had, and add relavent fields to the document. It seems