FluxyChat

Core SDK

Search

Full-text message search via REST.

Search room history with GET /search/messages (FTS5-backed). The SDK wraps this as client.searchMessages().

const { results } = await client.searchMessages("deployment rollback", {
  roomId: "engineering",
  limit: 20,
});

for (const hit of results) {
  console.log(hit.snippet, hit.roomId, hit.createdAt);
}

Query parameters

ParamDescription
qSearch string (required)
roomIdLimit to one room
from / toISO date range
limitMax hits (default 20, max 50)

Requires member JWT with access to the scoped rooms.

UI pattern

Debounce input, show snippets from hit.snippet, deep-link to /rooms/{roomId}?message={id} in your app router.

See API ReferenceSearch.

On this page