feat: support fuzzy query for FTS#3567
Closed
BubbleCal wants to merge 12 commits intolance-format:mainfrom
Closed
Conversation
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3567 +/- ##
==========================================
+ Coverage 78.65% 78.67% +0.01%
==========================================
Files 258 258
Lines 96782 96896 +114
Branches 96782 96896 +114
==========================================
+ Hits 76126 76229 +103
- Misses 17588 17598 +10
- Partials 3068 3069 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Signed-off-by: BubbleCal <bubble-cal@outlook.com>
Contributor
Author
|
move to #3610 |
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 introduces
fstlib for implementing fuzzy query:fstis like an immutableMap<String, u64>, but supports kinds of string queries (e.g. fuzzy search, prefix-match, substring, not equal)HashMapbecause we require mutabilityfstso that we can support fuzzy query, and probably more kinds of queries in the futureAnother impacts:
fstuses less memory, especially there are many similar tokensfstis slower thanHashMapfor getting the token id, but for FTS most time is spent on searching over posting lists so this doesn't make any visible impacts for query latency