cakephp / elastic-search

Elastic search datasource for CakePHP
Other
88 stars 53 forks source link

Access highlight in Document #134

Closed dario86 closed 7 years ago

dario86 commented 7 years ago

How can I read highlight key in the document when I iterate resultSet ? It is outside the _source at the moment

lorenzo commented 7 years ago

did you try $document->highlights()? where $document is the entity returned from find()

dario86 commented 7 years ago

Thanks, it works!