1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
GET my-index-000001/_search { "query": { "match_phrase": { "message": "number 1" } }, "highlight": { "fields": { "message": { "type": "plain", "fragment_size": 15, "number_of_fragments": 3, "fragmenter": "simple" } } } }