streamFromInputStream method

  1. @override
Stream<List<Document>> streamFromInputStream(
  1. Stream<String> inputStream, {
  2. Options? options,
})
override

Streams the most relevant documents for the query resulting from reducing the input stream.

  • inputStream - the input stream to reduce and use as the query.
  • options - Retrieval options.

Implementation

@override
Stream<List<Document>> streamFromInputStream(
  final Stream<String> inputStream, {
  final Options? options,
}) async* {
  final input = await inputStream.toList();
  final reduced = reduce<String>(input);
  yield* stream(reduced, options: options);
}