performDocumentSearch method

  1. @override
Stream<QueryResult> performDocumentSearch(
  1. DocumentSearchRequest request
)
override

Implementation

@override
Stream<QueryResult> performDocumentSearch(
  DocumentSearchRequest request,
) async* {
  final masterFuture = request.delegateTo(master);
  final cacheSnapshot = await request.delegateTo(cache).last;
  yield (cacheSnapshot);
  final masterSnapshot = await masterFuture.last;
  yield (masterSnapshot);
}