Suppose a user attempts a search, and somehow our Search API goes into an unrecoverable error state and fails to return results. This should be indicated as part of search results so that the error can be displayed to the user.
Example additions to SearchResult class:
class SearchResult {
public $results;
public $count = 0;
public $original_request;
public $error_message = NULL;
public $warning_message = NULL;
}
Suppose a user attempts a search, and somehow our Search API goes into an unrecoverable error state and fails to return results. This should be indicated as part of search results so that the error can be displayed to the user.
Example additions to SearchResult class: