Ids Query Usage

edit

Fluent DSL example

edit
q
.Ids(c => c
    .Name("named_query")
    .Boost(1.1)
    .Values(1, 2, 3, 4)
)

Object Initializer syntax example

edit
new IdsQuery
{
    Name = "named_query",
    Boost = 1.1,
    Values = new List<Id> { 1, 2, 3, 4 },
}

Example json output.

{
  "ids": {
    "_name": "named_query",
    "boost": 1.1,
    "values": [
      1,
      2,
      3,
      4
    ]
  }
}