Overview
Returns state and asearch function for executing natural language searches over project content. Supports filtering by content type and scoping by space or conversation.
For integration guidance, see Semantic Search.
Usage Example
Parameters
This hook returns an object. Callsearch with:
Limit results to specific content types. Omit to search all types.
Only applies with
spaceId. When true, results also cover every space nested under it — children, grandchildren, the whole subtree at any depth — not just the named space. Ignored without spaceId.Returns
The error if the last search failed, otherwise
null. A SublayError.
