Skip to content

Tips默认实现的搜索提示优先级优化 #103

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

Closed
tzfun opened this issue Jul 9, 2024 · 2 comments
Closed

Tips默认实现的搜索提示优先级优化 #103

tzfun opened this issue Jul 9, 2024 · 2 comments
Assignees
Labels
optimization Optimizing design or code
Milestone

Comments

@tzfun
Copy link
Owner

tzfun commented Jul 9, 2024

目前匹配优先级不太正确,完全匹配应该优先于其他匹配

@tzfun tzfun added the optimization Optimizing design or code label Jul 9, 2024
@tzfun tzfun added this to the [2-3].3.0 milestone Jul 9, 2024
@tzfun tzfun self-assigned this Jul 9, 2024
@tzfun
Copy link
Owner Author

tzfun commented Oct 16, 2024

优化后默认实现的匹配优先级:

  1. 完全匹配的优先展示
  2. 大小写完全匹配的优先展示
  3. 匹配索引位置越靠左越优先展示
  4. 匹配次数越多越优先展示
  5. 匹配源字符长度越短越优先展示

下个版本更出

@tzfun
Copy link
Owner Author

tzfun commented Oct 21, 2024

2.3.13.3.1版本已更新

@tzfun tzfun closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimizing design or code
Projects
None yet
Development

No branches or pull requests

1 participant