WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Min Score Usageedit
Fluent DSL exampleedit
s => s .MinScore(0.5) .Query(q => q .Term(p => p.Name, "elasticsearch") )
Object Initializer syntax exampleedit
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" } } } }