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