summaryrefslogtreecommitdiffstats
path: root/tests/files/GET_highlight_fields.txt
blob: 85b55cb4650c2ce7f873e5ecc42cd3a3a6ab21f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GET /some-index/_search
{
  "query": {
    "query_string": {
      "query": "running scissors",
      "fields": ["comment", "comment.plain^10"]
    }
  },
  "highlight": {
    "order": "score",
    "fields": {
      "comment": {
        "matched_fields": ["comment", "comment.plain"],
        "type" : "fvh"
      }
    }
  }
}