Skip to main content

Overview

Returns state and a search function for finding spaces by natural language query. Matches against space name, description, and other text fields using vector similarity. For integration guidance, see Semantic Search.
Only spaces that are public, with every space above them public too, are returned, whoever searches. unlisted and private spaces, and every space under one, are never surfaced in search results. Hidden spaces stay indexed but filtered out, so re-listing a space (setting it back to "public") makes it searchable again immediately. See Space visibility.

Usage Example

Parameters

Call search with:
string
required
The natural language query string.
number
Maximum number of results to return.

Returns

SpaceSearchResult[]
Ranked space results.
boolean
true while a search is in progress.
string | null
Error message if the last search failed.
Executes the search and updates results.
() => void
Clears results and error.