summaryrefslogtreecommitdiffstats
path: root/tests/files/GET_highlight.txt
blob: 15346fbd87b1e0b70fbc6fe3151a28dfbfb7446d (plain)
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"
      }
    }
  }
}