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.
Solve #46 #88
概述
本 PR 针对角色模型的搜索功能,增加了以下特性:
同时,规范了搜索结果的排列规则,使其按照以下匹配顺序排列:
依赖引入
com.github.promeg:tinypinyin:2.0.3
: promeG/TinyPinyincom.github.houbb:opencc4j:1.8.1
: houbb/opencc4j效果预览
由于采取了拼音缓存策略,因此首次搜索的耗时会相对更长,而后续搜索的耗时则大幅减少。