This repository was archived by the owner on Apr 4, 2023. It is now read-only.
-
Couldn't load subscription status.
- Fork 83
Enhance matching words #483
Merged
Merged
Changes from 16 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d96e72e
Create formater with some tests
ManyTheFish 3be1790
Add crop algorithm with naive match algorithm
ManyTheFish 844f546
Add matches algorithm V1
ManyTheFish 4428cb5
Add some tests and fix some corner cases
ManyTheFish 734d089
Publish Matcher
ManyTheFish 29c5f76
Use new matcher in http-ui
ManyTheFish bd30ee9
Keep separators at start of the croped string
ManyTheFish 6dc345b
Test and Fix prefix highlight
ManyTheFish b3f0f39
Make some cleaning
ManyTheFish a93cd8c
Fix prefix highlight with special chars
ManyTheFish 56e0edd
Put crop markers direclty around words
ManyTheFish 3bb1e35
Fix match count
ManyTheFish fa7d3a3
Make some cleaning and add comments
ManyTheFish b1905df
Make split_best_frequency returns references instead of owned data
ManyTheFish c8ed167
Add some documentation
ManyTheFish a769e09
Make token_crop_bounds more rust idiomatic
ManyTheFish a16de5d
Symplify format and remove intermediate function
ManyTheFish 011f821
Make compute_matches more rust idiomatic
ManyTheFish 827cedc
Add format option structure
ManyTheFish 5809d3a
Add first benchmarks on formatting
ManyTheFish f1115e2
Use Copy impl of FormatOption instead of clonning
ManyTheFish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
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.
I don't quite like this
format(true, true)thing as it is not clear what those too booleans mean, but we can open an issue and address this later.Uh oh!
There was an error while loading. Please reload this page.
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.
I can move them into the builder with a specific method for each 🤔
Uh oh!
There was an error while loading. Please reload this page.
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.
I chose to use FormatOption struct coming from Meilisearch which will ease the future integration.