searchAsFlow
fun <Document, Request : SearchRequest> SearchStorage<Document, Request>.searchAsFlow(request: Request, namespace: String? = null): Flow<SearchResult<Document>>(source)
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.