From 0893ec30d9253d41ddc17ce13295411f39720633 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Tue, 4 Nov 2025 15:26:18 +0100 Subject: [PATCH] Bugfix: use plainto_tsquery instead of to_tsquery to avoid errors on special chars --- application/config/searchfunctions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/config/searchfunctions.php b/application/config/searchfunctions.php index 276652997..ddf7692d5 100644 --- a/application/config/searchfunctions.php +++ b/application/config/searchfunctions.php @@ -29,7 +29,7 @@ $config['similar'] = [ $config['vector'] = [ 'priority' => 1, - 'rank' => "ts_rank({field}, to_tsquery('simple', {word}))", - 'compare' => "to_tsquery('simple', {word}) @@ {field}" + 'rank' => "ts_rank({field}, plainto_tsquery('simple', {word}))", + 'compare' => "plainto_tsquery('simple', {word}) @@ {field}" ];