aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_highlight_complex.txt
blob: 288aa9f3617f983ccdc4b738a0a64e42d2665b19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GET /some-index/_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" }
    }
  }
}