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

Search query string rework #96

Merged
merged 20 commits into from
Jan 7, 2024
Merged

Search query string rework #96

merged 20 commits into from
Jan 7, 2024

Conversation

mgdigital
Copy link
Collaborator

@mgdigital mgdigital commented Jan 4, 2024

  • search_string field is removed
  • text search vector for content and torrent_contents is generated in code with improvements in normalisation and tokenisation
  • the slow LIKE query is removed from text search
  • a query DSL is implemented which translates the input search string to a Postgres tsquery
  • a CLI command (reindex) is provided for updating the tsv for pre-existing records
  • the unused tsv and search_string fields are removed from the torrents table

See #89

@mgdigital mgdigital marked this pull request as draft January 4, 2024 15:20
@mgdigital mgdigital marked this pull request as ready for review January 6, 2024 18:41
@mgdigital mgdigital merged commit 6358b27 into main Jan 7, 2024
9 checks passed
@mgdigital mgdigital deleted the search-string-89 branch January 7, 2024 11:51
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.

Removing the LIKE part of the search query and normalising unicode characters
1 participant