docs(search): 拼音召回 — 明确 sys_user/选人器覆盖与存量数据回填(#2486 文档补遗)#3057
Merged
Conversation
…existing-row backfill Answers the two questions the merged docs left open (#2486): whether the people picker (sys_user) is covered automatically (yes — verified against a live showcase: sign-up, admin rename, and engine writes are all searchable immediately), and how pre-existing rows get their companion value (automatic paged backfill on the first boot after the switch turns on; rebuildSearchCompanion for hook-bypassing bulk imports). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RMugRriiNv3nsnmLczfhuY
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
os-zhuang
marked this pull request as ready for review
July 16, 2026 12:44
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#3034 合并后的文档补遗:回答读者(以及维护者实际问到的)两个已有文档没写清的问题。
补充内容(2 个文件,+18 行,纯文档)
queries.mdx→ Pinyin recall 小节新增两段:sys_user—— 选人器只发$search,零配置即可拼音搜人;经任何写路径(sign-up / 管理员改名 / engine 写入)创建的用户立即可搜。@objectstack/plugin-pinyin-search导出的rebuildSearchCompanion按需重建。environment-variables.mdx→ Search 章节:同样补一段 sys_user 覆盖 + 回填说明,并互链到 queries 文档。依据(非推测,已实测)
在最新 main 的 showcase 真机上验证过:通过 better-auth
sign-up注册中文名用户"张伟",行上__search立即物化为"zhangwei zw",$search=zhangwei/zw无需重启即命中;管理员把用户改名为"王小明"后wxm/wangxiaoming同样立即命中。纯文档改动,无需 changeset。
Refs #2486, #3027, #3034, ADR-0097
🤖 Generated with Claude Code
https://claude.ai/code/session_01RMugRriiNv3nsnmLczfhuY
Generated by Claude Code