feat: add portable KB snapshot for environments without old bridge

This commit is contained in:
wangliang
2026-10-23 11:19:49 +08:00
parent a161a0eee9
commit f526696f93
7 changed files with 118 additions and 7 deletions
+2
View File
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# 仅当存在旧 bridge 容器/旧 products 库时使用。
# 没有旧 bridge 的测试/生产环境请用: bash scripts/import-kb-snapshot.sh
# 重建旧 KB 的 parent-child 索引(调用旧 bridge 容器里的 indexer),再回填 text_tsv。
# 旧表会由 indexer 归档为 kb_docs_vN;额外先做一份 kb_docs_backup_<date> 备份。
set -euo pipefail