mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 01:51:37 -04:00
Fix keyword search
This commit is contained in:
@@ -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},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user