ENHANCE: Improve credential - search typo and abbreviation matching improved #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "enhance/search/typo_match"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Improve credential search typo tolerance and abbreviation matching.
This change addresses cases where transposed characters (e.g.
cratvscart) were not matched effectively, and improves matching for abbreviated queries such asgpatagainstgit_personal_access_token.Fixes #17
Functional Changes
Replaced the Levenshtein distance implementation with Damerau-Levenshtein distance.
crat→cart.Added a subsequence boost to string scoring.
SUBSEQ_BOOST = 0.4).gpatagainstgit_personal_access_token.Preserved the existing scoring hierarchy.
Bug Fixes
Fixed
similarityScorereturningNaNwhen both input strings were empty.1.0).Test Coverage
Added Damerau-Levenshtein tests for:
catr↔cart)Added subsequence scoring tests to verify that:
Added end-to-end ranking tests covering:
Added query composition tests to verify that:
Updated scoring-order tests to explicitly validate the boost hierarchy, including the new subsequence boost.
Impact
NaNedge case in similarity scoring.f252bca525to1af6d8f010Conducting manual testing for verifying that changes do help in regular use. If there are no issues found in usage with these changes over the next couple of days will merge this.
It seems like a significant step-up in terms of usability and accuracy.
Improve credential search typo and abbreviation matchingto ENHANCE: Improve credential - search typo and abbreviation matching improved