IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Min Score Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Min Score Usage
editFluent DSL example
edits => s
.MinScore(0.5)
.Query(q => q
.Term(p => p.Name, "elasticsearch")
)
Object Initializer syntax example
editnew SearchRequest<Project>
{
MinScore = 0.5,
Query = new TermQuery
{
Field = "name",
Value = "elasticsearch"
}
}
Example json output.
{
"min_score": 0.5,
"query": {
"term": {
"name": {
"value": "elasticsearch"
}
}
}
}