Displaying 1 result from an estimated 1 matches for "highlighted_nam".
Did you mean:
highlighted_name
2007 Jun 07
3
:store => :yes doesn''t work in some cases
...gt;
{
:ferret_name => { :store => :yes, :boost => 2 },
: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 => "...