Cake\ElasticSearch\Document::explanation PHP Method

explanation() public method

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.
public explanation ( ) : array
return array
    public function explanation()
    {
        if ($this->_result) {
            return $this->_result->getExplanation();
        }
        return [];
    }