添加搜索

This commit is contained in:
2026-07-18 10:58:33 +08:00 Unverified
parent 3867373850
commit c8b2039593
11 changed files with 859 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
# 浏览器可见,只能填写限制为 documents:search 权限的 Search-only Key。
PUBLIC_TYPESENSE_HOST=search.example.com
PUBLIC_TYPESENSE_PORT=443
PUBLIC_TYPESENSE_PROTOCOL=https
PUBLIC_TYPESENSE_SEARCH_API_KEY=replace-with-search-only-key
PUBLIC_TYPESENSE_COLLECTION=class_memories
# 仅供 npm run search:sync 使用,绝不能使用 PUBLIC_ 前缀。
TYPESENSE_ADMIN_API_KEY=replace-with-admin-key