All blocks

Work

Search

A search_documents index kept up by triggers from each config.subjects search entry, with search(q) as the caller (websearch, trigram prefixes, can_subject, hybrid with embeddings), and recents and favorites from the share-links user state.

DocsModes:managedadoptcustom
terminal
npx better-supabase sql add search
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by search; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      subjects: {},
      // Modes: "managed", "adopt", "custom". The default is "managed".
      search: { mode: "managed" },
    },
  },
});