-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat: bloom filter as fulltext index v2 (Part 1) #5406
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Zhenchi <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
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.
Good job!
|
||
impl Tokenizer for EnglishTokenizer { | ||
fn tokenize<'a>(&self, text: &'a str) -> Vec<&'a str> { | ||
text.split(|c: char| !c.is_alphabetic()) |
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.
So it will drop the not-alphabetic words such as numbers, operators, etc.?
I think the tokenizer needs some unit test cases.
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.
good catch. I have changed it to is_alphanumeric
which is consistent with tantivy
I think |
Signed-off-by: Zhenchi <[email protected]>
Signed-off-by: Zhenchi <[email protected]>
Signed-off-by: Zhenchi <[email protected]>
I have changed the enum variants to greptimedb/src/mito2/src/sst/index/fulltext_index.rs Lines 18 to 19 in 2bb4daf
|
Signed-off-by: Zhenchi <[email protected]>
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.
LGTM
Yes, I believe so. The names are more meaningful to users. |
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.
Copilot reviewed 25 out of 40 changed files in this pull request and generated no comments.
Files not reviewed (15)
- src/index/src/fulltext_index/tokenizer.rs: Evaluated as low risk
- src/index/src/bloom_filter.rs: Evaluated as low risk
- src/index/src/inverted_index/create/sort/intermediate_rw/codec_v1.rs: Evaluated as low risk
- src/index/src/fulltext_index.rs: Evaluated as low risk
- src/index/src/inverted_index/create/sort/external_sort.rs: Evaluated as low risk
- src/index/src/inverted_index/create.rs: Evaluated as low risk
- src/index/src/inverted_index/create/sort/intermediate_rw.rs: Evaluated as low risk
- src/index/src/bloom_filter/creator/finalize_segment.rs: Evaluated as low risk
- src/index/src/inverted_index/create/sort/merge_stream.rs: Evaluated as low risk
- src/index/src/bloom_filter/applier.rs: Evaluated as low risk
- src/index/src/inverted_index/create/sort.rs: Evaluated as low risk
- src/common/base/src/range_read.rs: Evaluated as low risk
- src/index/src/bloom_filter/creator.rs: Evaluated as low risk
- src/index/src/inverted_index.rs: Evaluated as low risk
- src/index/src/fulltext_index/create.rs: Evaluated as low risk
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Tokenizer
andAnalyzer
BloomFilterFulltextIndexCreator
as an alternative toTantivyFulltextIndexCreator
PR Checklist
Please convert it to a draft if some of the following conditions are not met.