onSearchError property

Stream<QueryResult> Function(SearchEnginePromotingDatabaseAdapter database, DocumentSearchRequest request, Object error, StackTrace stackTrace) onSearchError
final

Custom handler for errors returned by the search engine. If the handler is null, the request will be sent to the master database.

Implementation

final Stream<QueryResult> Function(
  SearchEnginePromotingDatabaseAdapter database,
  DocumentSearchRequest request,
  Object error,
  StackTrace stackTrace,
) onSearchError;