-
-
Notifications
You must be signed in to change notification settings - Fork 4
fix(search): improve multi-language support #164
Copy link
Copy link
Labels
good first issueGood for newcomersGood for newcomershacktoberfestRecommendation for work that qualifies for hacktoberfest approvalsRecommendation for work that qualifies for hacktoberfest approvals
Description
Currently, we only add a single search vector fitting the event language.
sqitch/src/deploy/table_event.sql
Lines 54 to 56 in 9f5e21a
| NEW.search_vector := | |
| setweight(to_tsvector(ts_config, NEW.name), 'A') || | |
| setweight(to_tsvector(ts_config, coalesce(NEW.description, '')), 'B'); |
This makes it difficult to search for events using a different language.
| ts_config := maevsi.language_iso_full_text_search(event_search.language); |
Either change the current implementation to ignore the language used when generating the vector and when searching, or add a search vector for every supported language.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershacktoberfestRecommendation for work that qualifies for hacktoberfest approvalsRecommendation for work that qualifies for hacktoberfest approvals
Type
Projects
Status
👀 In review