Exists Query Usage

edit

Fluent DSL example

edit
q
.Exists(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p => p.Description)
)

Object Initializer syntax example

edit
new ExistsQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = "description",
}

Example json output.

{
  "exists": {
    "_name": "named_query",
    "boost": 1.1,
    "field": "description"
  }
}