Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text for fulltext search #260

Merged
merged 8 commits into from
Apr 30, 2023
Merged

text for fulltext search #260

merged 8 commits into from
Apr 30, 2023

Conversation

swuecho
Copy link
Owner

@swuecho swuecho commented Apr 29, 2023

tsvector chinese support is not included by default.

currently, only use the simple config.

one possible walkaround is create tsvector in golang (using custom parser).

@swuecho swuecho changed the title update text for fulltext search Apr 29, 2023
@swuecho
Copy link
Owner Author

swuecho commented Apr 30, 2023

select uuid, title, ts_rank(text_vector, websearch_to_tsquery('test'), 1) as rank
from chat_snapshot
where text_vector @@ websearch_to_tsquery('test')
order by rank desc
LIMIT 20

@swuecho swuecho merged commit b944a54 into master Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant