search for: highlighted_contents

Displaying 2 results from an estimated 2 matches for "highlighted_contents".

2005 Dec 14
4
Is it possible to highlight search keywords in results?
...arch results. Just in case I''m not making sense, here is an example of what I want: query = ''contents:"testing|trucks"'' prepend = ''<strong>'' append = ''</strong>'' count = index.search_each(query) do |doc, score| highlighted_contents = index.highlight_for_query(doc, query, prepend, append) puts highlighted_contents end This would make all instances of "testing" and "trucks" appear in bold for html formatted text. Thoughts? Thanks, Carl
2007 Jun 07
3
:store => :yes doesn''t work in some cases
I''m not really sure if this is a bug, but it makes my search results look a bit strange. I have an acts_as_ferret declaration that looks like: acts_as_ferret :store_class_name => true, :remote => true, :fields => { :ferret_name => { :store => :yes, :boost => 2 }, :ferret_content => { :store => :yes } } I store both fields so that I