Making paginated search requests
In order to retrieve all objects from a search request, we recommend the following approach:
Send a search request where
start = 0
, androws = 100
.The search result will contain a property called
numFound
. Ifstart
+rows
<numFound
, then there are additional records to retrieve. If this is the case, increment the start parameter by the value of the rows parameter. For instance, ifnumFound = 200
, then add 100 to 0 and assign this value tostart
and make an additional search request, this time withstart = 100
androws = 100
.Repeat step 2 until
start
+rows
>=numFound
. When this is the case, you have retrieved all relevant records for your search request.
.NET C# Example
Last updated