Skip to content
全部能力
集成packages/integrations/search

search 能力包

全文搜索 — Meilisearch / Typesense / Algolia 三选一,统一 indexer + searcher;按租户过滤内建。

打开文档
稳定性
稳定
作用域
全局
边界
packages/integrations/search
  • Billing v2 迁移手册

    0.94

    从旧版发票迁移到新计量管道的逐步流程。

    posts/2024/billing-v2.md
    x
  • 针对 billing 租户的迁移清单

    0.89

    切换前请确认 RLS、密钥轮换和 webhook 回填。

    docs/billing/migration.mdx
    x
  • Stripe → Polar billing 适配器笔记

    0.81

    Provider-agnostic 形态让客户代码在切换时保持稳定。

    changelog/2026/adapters.md
    x
  • 零停机 migration 模式

    0.76

    双写、影子读取、最后切换——同样适用于 billing 数据。

    docs/patterns/migration.mdx
    x
检索 12,401 篇文档 用时 38ms · Meilisearch 后端38ms
使用方式search.ts
typescript
search.ts
1import { getSearch } from "@nebutra/search";
2
3// Provider-agnostic: Meilisearch | Typesense | Algolia.
4const search = await getSearch();
5
6await search.indexDocument("posts", {
7  id: post.id,
8  title: post.title,
9  body: post.body,
10  tenantId: post.tenantId,
11});
12
13const results = await search.search("posts", {
14  query: "billing migration",
15  tenantId: org.id,
16});