Highlighting matched results on _all fields

前端 未结 4 1135
一生所求
一生所求 2021-01-05 00:51

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

4条回答
  •  一生所求
    2021-01-05 01:28

    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

提交回复
热议问题