docs(search)+seed(showcase): 拼音搜索文档 + showcase 中文种子数据(#2486 收尾)#3034
Merged
Conversation
…strable out of the box (#2486) Follow-ups to the merged pinyin-search feature (ADR-0097, PR #3027): - environment-variables.mdx: new "Search" section documenting OS_SEARCH_PINYIN_ENABLED (locale-derived default, explicit override, what it gates). - queries.mdx: "Pinyin recall" subsection under Full-Text Search — how zhangwei/zw match CJK names transparently, what stays unchanged. - showcase seed: CJK-named account (华宁科技) and contacts (张伟/王芳/李雷) so the auto-enabled pinyin search is demonstrable in the picker and list quick-search instead of silently finding nothing. Verified on a fresh showcase boot: $search=zhangwei/zw/wf/huaning/hnkj all recall the seeded CJK records. 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 08:26
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.
#3027(拼音搜索,ADR-0097)合并后的文档与示例收尾,三处小改动:
1. showcase 种子数据 —— 让功能开箱可演示
showcase 配了
zh-CN,拼音搜索自动点亮,但原 seed 数据里没有任何中文名称记录 —— 功能开着却演示不出来。新增中文客户华宁科技和联系人张伟/王芳/李雷(带注释说明用途),选人器 / 列表快搜输zhangwei/zw即可命中。这也符合 Prime Directive #10 推论:不点亮一个 showcase 展示不了的能力。2.
content/docs/deployment/environment-variables.mdx新增 "Search" 章节:
OS_SEARCH_PINYIN_ENABLED条目(默认值由 locale 推导、显式设置优先、门控范围:伴随列物化 + 插件加载,关闭时零成本)。3.
content/docs/data-modeling/queries.mdxFull-Text Search 章节下新增 "Pinyin recall" 小节:何时点亮、
zhangwei/zw如何透明命中 CJK 名称、fields语义 /searchableFields/ 驱动均不变、相关性排序仍属 Tier-2。验证
本地 fresh 启动 showcase:
$search=zhangwei/zw/wf/huaning/hnkj全部命中对应中文种子记录(同时验证了 seed 的 isSystem 写入路径经 hook/回填正确物化伴随列)。无发布包代码变更(仅 docs + examples),无需 changeset。
Refs #2486, #3027, ADR-0097
🤖 Generated with Claude Code
https://claude.ai/code/session_01RMugRriiNv3nsnmLczfhuY
Generated by Claude Code