Skip to content

Commit

Permalink
Fixed highlight problem when a stemming dictionary is configured.
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Oct 6, 2016
1 parent 19ebda2 commit 3263910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pg_search/features/tsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def checks_for_highlight
end

def ts_headline
"ts_headline((#{document}), (#{tsquery}), '#{ts_headline_options}')"
"ts_headline(#{dictionary.to_sql}, (#{document}), (#{tsquery}), '#{ts_headline_options}')"
end

def ts_headline_options
Expand Down

0 comments on commit 3263910

Please sign in to comment.