Skip to content

Commit

Permalink
Add method to return raw Solr response headers
Browse files Browse the repository at this point in the history
We use it in our SolrProbe to log the reported query execution time.

Cf. https://github.com/subhh/solrprobe/blob/master/src/main/php/SolrProbe.php#L104
  • Loading branch information
David Maus committed Jan 2, 2024
1 parent 74bac9e commit b5b7cc6
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,16 @@ public function getCursorMark()
return $this->response['nextCursorMark'] ?? '';
}

/**
* Get response header.
*
* @return array
*/
public function getResponseHeader ()
{
return $this->response['responseHeader'] ?? [];
}

/**
* Get raw Solr input parameters from the response.
*
Expand Down

0 comments on commit b5b7cc6

Please sign in to comment.