Merged
Conversation
|
Thinking Elixir fans jump on for support, brilliant! 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces BM25 full-text search support to the project, leveraging the
pg_textsearchextension for PostgreSQL 17+. It adds the newTorus.bm25/5macro for state-of-the-art relevance ranking, updates documentation and tests, and ensures the CI pipeline and test environment are compatible with the new requirements. The most important changes are grouped below.BM25 Full-Text Search Feature:
Torus.bm25/5macro inlib/torus.exfor BM25-ranked full-text search, including comprehensive documentation, usage examples, and migration guidance.lib/torus/search/bm25.ex, supporting options like ordering, score selection, pre-filtering, and score thresholding.Documentation and Guides:
README.mdandCHANGELOG.mdto document the new BM25 search capability, its requirements, usage scenarios, and how it compares to existing full-text search. [1] [2] [3] [4]0.6.0inmix.exsand included the changelog in the documentation extras. [1] [2]CI and Test Environment Updates:
pg_textsearchextension for testing. [1] [2] [3]pg_textsearchand create BM25 indexes on relevant columns.Testing and Validation:
bm25/5macro to ensure correct option usage, especially aroundscore_thresholdandindex_name.