From And Size Usageedit
Pagination of results can be done by using the from and size parameters.
-
fromparameter - defines the offset from the first result you want to fetch.
-
sizeparameter - allows you to configure the maximum amount of hits to be returned.
Object Initializer Syntax Exampleedit
new SearchRequest<Project>()
{
From = 10,
Size = 12
}Example json output.
{
"from": 10,
"size": 12
}
Fluent DSL Exampleedit
s => s
.From(10)
.Size(12)