public getExplanation ( ) : array | ||
return | array | explanations |
public function getExplanation()
{
return $this->getParam('_explanation');
}
/** * Returns the explanation array for this document as returned from ElasticSearch. * * If this is a new document, or the query used to create it did not ask for * explanation, this function will return an empty array. * * @return array */ public function explanation() { if ($this->_result) { return $this->_result->getExplanation(); } return []; }