yii\elasticsearch\Query::highlight PHP Method

highlight() public method

Sets a highlight parameters to retrieve from the documents.
See also: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-highlighting.html
public highlight ( array $highlight )
$highlight array array of parameters to highlight results.
    public function highlight($highlight)
    {
        $this->highlight = $highlight;
        return $this;
    }