Method: Sunspot::Search::Hit#highlight
- Defined in:
- lib/sunspot/search/hit.rb
#highlight(field_name) ⇒ Object
Return the first highlight found for a given field, or nil if there is none.
54 55 56 |
# File 'lib/sunspot/search/hit.rb', line 54 def highlight(field_name) highlights(field_name).first end |