search for: num_excerpts

Displaying 6 results from an estimated 6 matches for "num_excerpts".

2007 Aug 08
2
Highlighting broken in TRUNK
...ello list, As there is still some large file support bugs in the 0.11.4 release I had to download the trunk and apply a patch sent in by kyle http:// ferret.davebalmain.com/trac/ticket/215. The problem is now that the highlighting doesn''t work. Somehow it combines excerpt_length with num_excerpts so if you have and excerpt_length of 50 and num_excerpts of 5 and you get only one hit when searching the excerpts is either the whole text or 50*5 = 250. So everytime you get a result with less hits than num_excerpts the highlighting goes crazy. Comments, Fixes, Patches are all welcome :)...
2007 Sep 05
1
AAF and DRb with highlighting
...cle.find(doc[:id]) # Store each field in a hash which we can reference in our views result[:headline_highlight] = index.highlight(query, hit, :field => :headline, :pre_tag => "<strong>", :post_tag => "</strong>", :num_excerpts => 1) result[:body_highlight] = index.highlight(query, hit, :field => :body, :pre_tag => "<strong>", :post_tag => "</strong>", :num_excerpts => 1) result[:article] = article result[:score] = score...
2007 Jun 19
3
another issue with highlighting
..._each(q,:limit => :all) do |id,score| for b in [:un, :deux, :trois, :quatre, :cinq, :six, :sept, :huit, :neuf, :dix] z[b]=[] if not z[b] z[b] << id.to_s + " : " + index.highlight(q,id,:field => b, :pre_tag => "<em>", :post_tag => "</em>", :num_excerpts => :all, :excerpt_length => :all).join(" | ") if index[id][b].match(/1/) and index.highlight(q,id,:field => b, :pre_tag => "<em>", :post_tag => "</em>", :num_excerpts => :all, :excerpt_length => :all) and not index.highlight(q,id,:field...
2007 Jun 28
1
DRb server crashing
...grel_rails:16:in `load'' /usr/local/bin/mongrel_rails:16 ----------- ferret_server.out ----------------- EMPTY ----------- ferret_server.log ----------------- call index method: highlight with [13, "Topic", "jesse", {:field=>:ferret_name, :excerpt_length=>150, :num_excerpts=>1, :pre_tag=>"<strong>", :post_tag=>"</strong>"}] call index method: highlight with [13, "Topic", "jesse", {:field=>:ferret_content, :excerpt_length=>150, :num_excerpts=>1, :pre_tag=>"<strong>", :post_tag=>...
2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use the find_storage_by_contents to highlight the results, I am getting the above error. Please help thanks -- Posted via http://www.ruby-forum.com/.
2007 Jun 07
3
:store => :yes doesn''t work in some cases
...esult model from the rails DB when displaying the results. This is the code that I use to show each result: highlighted_name = result.highlight(params[:q], :field => :ferret_name, :pre_tag => "<strong>", :post_tag => "</strong>", :excerpt_length => 150, :num_excerpts => 1) highlighted_content = result.highlight(params[:q], :field => :ferret_content, :pre_tag => "<strong>", :post_tag => "</strong>", :excerpt_length => 150, :num_excerpts => 1) Generally this all works fine. The problem happens when the ferret_na...