搜索
- 作者仓库星标 20
- 许可证 MIT
- 作者仓库 search-js
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @upstash · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 读取环境变量
- 网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
npm install @upstash/search
# Upstash Search Documentation
## Quick Start
Install the TS SDK:
```
npm install @upstash/search
```
Create a client and perform a simple upsert + search:
```
import { Search } from "@upstash/search";
const client = new Search({ url: process.env.UPSTASH_SEARCH_REST_URL, token: [REDACTED:credential] });
const index = client.index("my-index");
await index.upsert({ id: "1", content: { text: "hello world" } });
const results = await index.search({ query: "hello" });
```
Basic steps:
- Create an index
- Insert or update documents
- Run searches or filtered queries
## Other Skill Files
### sdk-overview
Provides detailed documentation for all TypeScript SDK commands. Includes:
- delete: Deleting documents
- fetch: Retrieving a document
- info: Index info
- range: Range queries
- reset: Clearing an index
- search: Search queries
- upsert: Adding/updating documents
- getting-started: Setup steps for the SDK
### quick-start
Provides a fast, end-to-end workflow for creating a Search database, adding documents, and querying them. Covers essential concepts including:
- Creating a database and storing credentials
- Adding documents with content and metadata
- Understanding content vs metadata (searchability and filterability)
- Performing searches with optional reranking
- Filtering syntax with SQL-like or structured filters
- Common pitfalls and best practices
章节与文件索引
按说明文件中的顺序排列。
快速入门
SDK概述
快速启动
文件/命令 -> upstash/search · Adding/updating
内容校验值 -> 91261a08acab
当前原文的自动摘译,尚未人工审校。
快速入门
安装 TS SDK: 创建客户端并执行简单的 upsert + 搜索: 基本步骤: 创建索引 插入或更新文档
SDK概述
提供所有 TypeScript SDK 命令的详细文档。包括:delete:删除文档fetch:检索文档info:索引信息range:范围查询
快速启动
提供快速的端到端工作流程,用于创建搜索数据库、添加文档和查询它们。涵盖基本概念,包括: 创建数据库和存储凭据 添加包含内容和元数据的文档 了解内容与元数据(可搜索性和可过滤性) 通过可选的重新排名执行搜索