WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
From And Size Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
From And Size Usage
editPagination 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.
Fluent DSL example
edits => s
.From(10)
.Size(12)
Object Initializer syntax example
editnew SearchRequest<Project>()
{
From = 10,
Size = 12
}
Example json output.
{
"from": 10,
"size": 12
}