public function testHighlightedSearch()
{
$client = \ElasticSearch\Client::connection();
$ind = $client->index(array('title' => 'One cool document', 'body' => 'Lorem ipsum dolor sit amet', 'tag' => array('cool', "stuff", "2k")), 1, array('refresh' => true));
$client->refresh();
$results = $client->search(array('query' => array('term' => array('title' => 'cool')), 'highlight' => array('fields' => array('title' => new \stdClass()))));
$this->assert->array($results)->hasKey('hits')->array($results['hits'])->hasKey('hits')->array($results['hits']['hits'])->isNotEmpty()->array($results['hits']['hits'][0])->hasKey('highlight')->array($results['hits']['hits'][0]['highlight'])->hasKey('title');
}