IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Indices Boost Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Indices Boost Usage
editFluent DSL example
edits => s
.IndicesBoost(b => b
.Add("project", 1.4)
.Add("devs", 1.3)
)
.Query(q => q
.MatchAll()
)
Object Initializer syntax example
editnew SearchRequest<Project>
{
IndicesBoost = new Dictionary<IndexName, double>
{
{ "project", 1.4 },
{ "devs", 1.3 }
},
Query = new MatchAllQuery()
}
Example json output.
{
"indices_boost": [
{
"project": 1.4
},
{
"devs": 1.3
}
],
"query": {
"match_all": {}
}
}