You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(search)+seed(showcase): document pinyin recall and make it demonstrable out of the box (#3034)
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.
- showcase seed: CJK-named account (华宁科技) and contacts (张伟/王芳/李雷) so the auto-enabled pinyin search is demonstrable out of the box.
Verified on a fresh showcase boot: $search=zhangwei/zw/wf/huaning/hnkj all recall the seeded CJK records.
Refs #2486
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RMugRriiNv3nsnmLczfhuY
Copy file name to clipboardExpand all lines: content/docs/deployment/environment-variables.mdx
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,6 +235,26 @@ OS_MCP_SERVER_ENABLED=true os start # additionally auto-start the stdio tran
235
235
236
236
---
237
237
238
+
## Search
239
+
240
+
Pinyin recall for `$search` (ADR-0097): with the switch on, every object's
241
+
display/name field gets a hidden, platform-maintained companion column storing
242
+
full pinyin + initials ("张伟" → "zhangwei zw"), so lookup pickers, list
243
+
quick-search and ⌘K match `zhangwei` / `zw` against CJK names — transparently,
244
+
with no client or object changes.
245
+
246
+
```bash
247
+
os start # auto-on when the stack's i18n config lists any zh-* locale
248
+
OS_SEARCH_PINYIN_ENABLED=true os start # force on regardless of locales
249
+
OS_SEARCH_PINYIN_ENABLED=false os start # force off (e.g. a zh-locale stack that doesn't want the extra column)
250
+
```
251
+
252
+
| Variable | Type | Default | Description |
253
+
|:---|:---|:---|:---|
254
+
|`OS_SEARCH_PINYIN_ENABLED`| boolean | locale-derived | Pinyin search recall. When unset, the default derives from the stack's configured locales (`i18n.defaultLocale` / `supportedLocales` / `fallbackLocale`): any `zh-*` locale turns it on; an explicit value always wins. Gates both the compile-time `__search` companion column and the `plugin-pinyin-search` populate hooks, so there is no half-state. Off ⇒ no extra column, and `pinyin-pro` is never loaded. |
0 commit comments