Fix keyword search

This commit is contained in:
MartinBraquet
2026-02-25 21:34:22 +01:00
parent 77e40c088c
commit 59cb649540

View File

@@ -230,7 +230,7 @@ export const loadProfiles = async (props: profileQueryType) => {
OR ${getOptionClauseKeyword('causes')}
OR ${getOptionClauseKeyword('work')}
OR lower(headline) ilike '%' || lower($(word)) || '%'
OR keywords && LOWER($(word)) = ANY(keywords)
OR EXISTS ( SELECT 1 FROM unnest(keywords) AS kw WHERE kw ILIKE '%' || LOWER($(word)) || '%' )
`,
{word, locale},
),