How do I use hook_search_api_solr_search_results_alter() to alter search results?
I have installed search_api, search_api_solr and search_api_attachments.  The View that I am reading with the hook is a Solr indexed view returning solr index extracts.  

I discovered this was how to read the result rows:

  $result_items = $result_set-&gt;getResultItems();
  // Iterate through doc ids
  foreach ($result_items as $docid =&gt; $value) {
    // process info from $docid and/or $value
  }


$docid will be the Solr document id, i.e.: entity:node/47:en

In my case, all the information I need, entity type and entity id, are in the document id.

If I want to remove the result row:

unset($result_items[$docid]);


And at the end of the hook:

$result_set-&gt;setResultItems($result_items);