switch comparison to simple fts configuration
gitea/wcs/pipeline/head There was a failure building this commit Details

This commit is contained in:
Pierre Ducroquet 2024-04-09 18:08:39 +02:00
parent ad6044cf60
commit 2bc52f9ccd
1 changed files with 1 additions and 1 deletions

View File

@ -1791,7 +1791,7 @@ WITH
tsquery_agg_or(plainto_tsquery(partial.token)),
plainto_tsquery(word)) AS tokens
FROM tokenized
LEFT JOIN wcs_search_tokens AS partial ON partial.token <-> plainto_tsquery(word)::text < 0.7 AND word not similar to '%[0-9]{2,}%'
LEFT JOIN wcs_search_tokens AS partial ON partial.token <-> plainto_tsquery('simple', word)::text < 0.7 AND word not similar to '%[0-9]{2,}%'
GROUP BY word)
SELECT tsquery_agg_and(tokens) FROM super_tokenized;
$function$;"""