searchAsFlow

Returns the results of SearchStorage.search as a Flow instead of a list.

Return

A Flow emitting search results, each containing a document and its score.

Parameters

request

The search request containing the query, result limit, and other search parameters.

namespace

An optional namespace to scope the search. If null, the default namespace is used.