Sliced Scroll Search Usage

edit

Sliced Scroll Search Usage

edit

Fluent DSL example

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

Object Initializer syntax example

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

Example json output.

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