-
Notifications
You must be signed in to change notification settings - Fork 75
Upgrade tantivy 0.24. Fixes #470 #472
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
Conversation
Ok tests are passing. I want to go over the changes again to check for efficiency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request upgrades the tantivy dependency to version 0.24.0 and updates test expectations and error messages to match the new API behavior. Key changes include:
- Modifications to test cases to account for new query representations and error messages.
- Updates in snippet and query modules to use revised module paths and API calls.
- Adjustments in document handling to switch from using BTreeMap to a Vec of key/value pairs.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
tests/test_escapes.py | Updated test behavior to expect no error with escape characters. |
tests/tantivy_test.py | Modified expected query representations and error messages. |
src/snippet.rs | Updated module paths for snippet generator usage. |
src/query.rs | Revised range query API to conform to updated tantivy usage. |
src/document.rs | Changed JSON conversion from a BTreeMap to a Vec of tuples. |
Cargo.toml | Upgraded tantivy dependency to version 0.24.0. |
# from tantivy versions prior to 0.24.0 in which the following would | ||
# raise a `ValueError`. | ||
q = index.parse_query(r'sea\"', ["title", "body"]) | ||
print(q) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The print statement appears to be a leftover debug output. It is recommended to remove it unless it serves a specific purpose in the test.
print(q) |
Copilot uses AI. Check for mistakes.
Really good to get #401 in somehow after this |
Still a couple failing tests to work through.