Min Score Usage

edit

Fluent DSL example

edit
s => s
.MinScore(0.5)
.Query(q => q
    .Term(p => p.Name, "elasticsearch")
)

Object Initializer syntax example

edit
new SearchRequest<Project>
{
    MinScore = 0.5,
    Query = new TermQuery
    {
        Field = "name",
        Value = "elasticsearch"
    }
}

Example json output.

{
  "min_score": 0.5,
  "query": {
    "term": {
      "name": {
        "value": "elasticsearch"
      }
    }
  }
}