aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/GET_highlight_complex.txt
blob: 94e4221311e4befca0c222bd9ef0922b47ec8343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GET /_search
{
  "query" : {
    "match": { "user.id": "kimchy" }
  },
  "highlight" : {
    "number_of_fragments" : 3,
    "fragment_size" : 150,
    "fields" : {
      "body" : { "pre_tags" : ["<em>"], "post_tags" : ["</em>"] },
      "blog.title" : { "number_of_fragments" : 0 },
      "blog.author" : { "number_of_fragments" : 0 },
      "blog.comment" : { "number_of_fragments" : 5, "order" : "score" }
    }
  }
}