Sliced Scroll Search Usageedit

Fluent DSL exampleedit

s => s
.Scroll("1m")
.Slice(ss => ss.Id(0).Max(5))

Object Initializer syntax exampleedit

new SearchRequest<Project>()
{
    Scroll = "1m",
    Slice = new SlicedScroll { Id = 0, Max = 5 }
}

Example json output.

{
  "slice": {
    "id": 0,
    "max": 5
  }
}