Closed zhongzc closed 2 days ago
[!NOTE]
Reviews paused
Use the following commands to manage reviews:
@coderabbitai resume
to resume automatic reviews.@coderabbitai review
to trigger a single review.
This change set introduces a new fulltext indexing feature leveraging the Tantivy search engine. It includes configuration, creation, and error handling functionalities. Dependencies such as serde
, tokio
, and tantivy
are added to support these features. Additionally, some minor corrections in variable names and consistency adjustments are made in the puffin_manager
module.
Files | Change Summary |
---|---|
src/index/Cargo.toml |
Added dependencies: serde , tantivy with zstd-compression , tantivy-jieba , tokio , and common-test-util . |
src/index/src/fulltext_index.rs |
Introduced Config struct and Analyzer enum to configure fulltext index settings. |
src/index/src/fulltext_index/create.rs |
Added the FulltextIndexCreator trait and methods for text indexing. Exported TantivyFulltextIndexCreator implementation. |
src/index/src/fulltext_index/create/tantivy.rs |
Implemented TantivyFulltextIndexCreator for fulltext indexing with Tantivy, including analyzer configuration and memory management. |
src/index/src/fulltext_index/error.rs |
Introduced structured error handling with the Error enum and Result type alias. |
src/index/src/lib.rs |
Added fulltext_index module. |
src/puffin/src/puffin_manager/stager/bounded_stager.rs |
Corrected the capacity parameter spelling in the new function. |
src/puffin/src/puffin_manager/tests.rs |
Corrected the spelling of capacity variable in function signatures and its usage. |
In the code, where search is found,
New indices now do abound.
With Tantivy's power at our will,
English and Chinese texts we fill.
Serde, Tokio join the stage,
Errors handled, tests engage.
🐇✨ Fulltext searches, fast and sage!
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai pause
Attention: Patch coverage is 95.53073%
with 8 lines
in your changes missing coverage. Please review.
Project coverage is 84.71%. Comparing base (
db5d116
) to head (8d965d5
). Report is 1 commits behind head on main.
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
4246
What's changed and what's your intention?
as @coderabbitai
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
capicity
tocapacity
in various functions and tests to ensure consistency and prevent errors.Error Handling