Commit 8715ef622b1e8d1cb3bf257f0f265d4836291ea9

Authored by Andrew
1 parent 641c2670

Fixed with_highlights method

Showing 2 changed files with 2 additions and 1 deletions   Show diff stats
CHANGELOG.md
... ... @@ -5,6 +5,7 @@
5 5 - Added `case_sensitive` option
6 6 - Added `stem` option
7 7 - Added `total_entries` option
  8 +- Fixed `with_highlights` method
8 9  
9 10 ## 3.1.0
10 11  
... ...
lib/searchkick/results.rb
... ... @@ -195,7 +195,7 @@ module Searchkick
195 195 end
196 196  
197 197 def with_highlights(multiple: false)
198   - with_hit do |result, hit|
  198 + with_hit.map do |result, hit|
199 199 [result, hit_highlights(hit, multiple: multiple)]
200 200 end
201 201 end
... ...