Skip to content

feat(search): 支持拼音全拼搜索以及多音字搜索#129

Open
neooier wants to merge 1 commit into
OIerDb-ng:masterfrom
neooier:pinyin
Open

feat(search): 支持拼音全拼搜索以及多音字搜索#129
neooier wants to merge 1 commit into
OIerDb-ng:masterfrom
neooier:pinyin

Conversation

@neooier

@neooier neooier commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

#65
#33
前置PR: OIerDb-ng/OIerDb-data-generator#480

功能实现

程思元

  • csy 拼音首拼
  • chengsiyuan 拼音全拼
  • csyuan 首拼全拼混合

沈泊帆

  • sbf
  • spf 多音字均可匹配

性能问题

于5700G(CPUZ单核630)单次查询时间在120ms左右,可能需要对输入进行防抖处理以获得更好的查询体验

其它

也许可以去除姓名拼音缩写的维护

- 新增 PinyinQueryer 类用于处理拼音查询
- 在 Search 组件中实现拼音匹配逻辑
- 更新 OIerDb 接口,增加 pinyins 字段
- 修改 initDb 函数,支持下载和处理拼音数据
- 优化数据下载和处理流程,提高性能
@netlify

netlify Bot commented Jan 17, 2025

Copy link
Copy Markdown

Deploy Preview for oierdb ready!

Name Link
🔨 Latest commit 78dbe2f
🔍 Latest deploy log https://app.netlify.com/sites/oierdb/deploys/678a2408e3841f0009f67706
😎 Deploy Preview https://deploy-preview-129--oierdb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant