# HG changeset patch # User jbe # Date 1566827523 -7200 # Node ID d34f8403d2c6fc3ba6dfdec5edd23d00fd69d744 # Parent 85489702edd204924e76a171862102700ad8c220 Bugfix in highlight function (use PostgreSQL's built-in "plainto_tsquery" function) diff -r 85489702edd2 -r d34f8403d2c6 core.sql --- a/core.sql Thu Jan 10 16:52:08 2019 +0100 +++ b/core.sql Mon Aug 26 15:52:03 2019 +0200 @@ -1791,7 +1791,7 @@ BEGIN RETURN ts_headline( replace(replace("body_p", e'\\', e'\\\\'), '*', e'\\*'), - "text_search_query"("query_text_p"), + "plainto_tsquery"("query_text_p"), 'StartSel=* StopSel=* HighlightAll=TRUE' ); END; $$;