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