aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/GET_search_boosting.txt
blob: 9045a5408c70849c7e88906fe38b4c0e73de834d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
GET /some-index/_search
{
  "query": {
    "boosting": {
      "positive": {
        "term": {
          "text": "apple"
        }
      },
      "negative": {
        "term": {
          "text": "pie tart fruit crumble tree"
        }
      },
      "negative_boost": 0.5
    }
  }
}