liquid_feedback_core

changeset 597:d34f8403d2c6

Bugfix in highlight function (use PostgreSQL's built-in "plainto_tsquery" function)
author jbe
date Mon Aug 26 15:52:03 2019 +0200 (11 months ago)
parents 85489702edd2
children f02b7ea48971
files core.sql
line diff
     1.1 --- a/core.sql	Thu Jan 10 16:52:08 2019 +0100
     1.2 +++ b/core.sql	Mon Aug 26 15:52:03 2019 +0200
     1.3 @@ -1791,7 +1791,7 @@
     1.4      BEGIN
     1.5        RETURN ts_headline(
     1.6          replace(replace("body_p", e'\\', e'\\\\'), '*', e'\\*'),
     1.7 -        "text_search_query"("query_text_p"),
     1.8 +        "plainto_tsquery"("query_text_p"),
     1.9          'StartSel=* StopSel=* HighlightAll=TRUE' );
    1.10      END;
    1.11    $$;

Impressum / About Us