Search for items within a namespace prefix. Supports both metadata filtering and vector similarity search.
| Name | Type | Description |
|---|---|---|
namespacePrefix* | string[] | Hierarchical path prefix to search within |
options | __type | Search options for filtering and pagination |
// Search with filters
await store.search(["documents"], {
filter: { type: "report", status: "active" },
limit: 5,
offset: 10
});
// Vector similarity search
await store.search(["users", "content"], {
query: "technical documentation about APIs",
limit: 20
});