search for: pre_tag

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

Did you mean: freitag
2007 Sep 05
1
AAF and DRb with highlighting
...arch_each(query, options) do |hit, score| doc = index[hit] result = {} article = Article.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&...
2007 Jun 19
3
another issue with highlighting
...z[:dix] = t index << z end #testing q="*1*" z={} index.search_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...
2016 Nov 18
0
Modern FireFox on CentOS 7
...%endif # Hardened build? -%if 0%{?fedora} > 20 +%if 0%{?fedora} > 20 || 0%{?rhel} > 6 %define hardened_build 1 %else %define hardened_build 0 @@ -94,7 +94,7 @@ Summary: Mozilla Firefox Web browser Name: firefox Version: 50.0 -Release: 1%{?pre_tag}%{?dist} +Release: 1%{?pre_tag}%{?dist}.0 URL: https://www.mozilla.org/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Group: Applications/Internet @@ -127,7 +127,7 @@ Patch204: rhbz-966424.patch Patch215: firefox-enable-addons.patch Patch2...
2007 Feb 16
1
Highlight raises Segmentation Fault Error in Ferret 0.10.9 i
...ng Ferret 0..9.1 to Ferret 0.10.9 with Ruby 1.8.4 in windows platform. I am trying to use search highlight feature on index_searcher subject = index_searcher.highlight("subject:(blah blah)", 0, :field => :content, :pre_tag = "<span class=''highlight''>", :post_tag = "</span>") But all my tests fails and I run into Segmentation Fault Error. Does anyone has come across this bug? I see couple of emails in this forum but I have not been able to find solutions. Can some...
2007 Feb 06
2
Which method to use to get content from index with a_a_f?
...ller action: def preview if params[:search].blank? # normal case @text = @myfile. # which method do I use here to get the :text from the index??? else # if we come from the search results page @text = @myfile.highlight(params[:search], { :field => :text, :excerpt_length => :all, :pre_tag => ''[highlight]'', :post_tag => ''[/highlight]'' }) end end I didn''t store my text in the database, only in the index. When I''m coming from a search I use the highlight method, so the term I searched for gets highlighted, but how do I get...
2007 Jun 28
1
DRb server crashing
...d'' /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=>"</stron...
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
...:ferret_content => { :store => :yes } } I store both fields so that I don''t need to load each result 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>",...
2007 Aug 08
0
Escaping special characters before highlighting
Hi all. I need to perform some operation on the results of a ferret search before it gets highlighted. Is there a way to do this? This is my code which calls the highlighting inside a Rails View: <%= result.ferret_highlight(@query, :field => :ferret_text, :pre_tag => ''<span class="keyword">'', :post_tag => ''</span>'') %> -- Posted via http://www.ruby-forum.com/.
2007 Jun 17
1
highlighting and range queries
...70101)'', ''test:2007*'', Ferret::Search::RangeQuery.new(:test, :>= => "20070101") ] index.search_each(q) do |id, score| puts "Document #{index[id][:test]} found with a score of #{score}" highlights = index.highlight(q, id, :field => :test, :pre_tag => "\033[36m", :post_tag => "\033[m") puts highlights end puts "------" end --
2007 Feb 16
0
Highlight raises Segmentation Fault Error in Ferret 0.10.9 in Windows
...g Ferret 0..9.1 to Ferret 0.10.9 with Ruby 1.8.4 in windows platform. I am trying to use search highlight feature on index_searcher subject = index_searcher.highlight("subject:(blah blah)", 0, :field => :content, :pre_tag = "<span class=''highlight''>", :post_tag = "</span>") But all my tests fails and I run into Segmentation Fault Error. Does anyone has come across this bug? I see couple of emails in this forum but I have not been a...
2006 Dec 01
1
Effective search when knowing ID
...teredQuery.new(content_query, id_filter) index.search_each(query) do |id, score| puts "Document #{id} found with a score of #{score}" highlights = index.highlight(content_query, id, :field => :content, :pre_tag => "\033[36m", :post_tag => "\033[m", :excerpt_length => 100) puts highlights end Please comment of this! Can I make my database PK id to be the ferret document ID?? Would that speed it up? Cheers, Henrik