diff --git a/lib/pg_search/features/tsearch.rb b/lib/pg_search/features/tsearch.rb index ddac82e7..8b41dcd2 100644 --- a/lib/pg_search/features/tsearch.rb +++ b/lib/pg_search/features/tsearch.rb @@ -47,7 +47,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