summaryrefslogtreecommitdiff
path: root/docs/reference/search/request/index-boost.asciidoc
blob: bf766ce8a8c0549290412a42f452dd549043fc59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[[search-request-index-boost]]
=== Index Boost

Allows to configure different boost level per index when searching
across more than one indices. This is very handy when hits coming from
one index matter more than hits coming from another index (think social
graph where each user has an index).

[source,js]
--------------------------------------------------
GET /_search
{
    "indices_boost" : {
        "index1" : 1.4,
        "index2" : 1.3
    }
}
--------------------------------------------------
// CONSOLE