Extract parsing search results for blobs/wiki_blobs
There are multiple results types we get from SearchService
and their parsing is not unified. Specifically it's problematic for wiki_blobs and blobs.
While for objects like issues or MRs we get an array of ActiveRecords
, for wiki_blobs we get an array of FoundBlobs
and for blobs an array of arrays [file_name, FoundBlob]
.
Additionally Elasticsearch::Model::Response::Response
is returned when Elasticsearch is enabled (EE only).
We should extract parsing results to some class and make it easier to use.