I want the matched results to be highlighted. This works for me if I mention the field name and it returns the highlighted text, however if I give the field as \"_all\", it
This library has functions for query highlighting including highlighting across all fields. The README explains how to create an elasticsearch index with _all field stored etc:
https://github.com/niranjan-uma-shankar/Elasticsearch-PHP-class