Paginating Results

By default, ASN Search returns the top ten hits according to the specified ranking. To control the number of hits returned in a result set, you use the size parameter. To request the next set of hits beginning from a particular offset, you use the start parameter. Note that the result set is zero-based—the first result is at index 0.

For example, search?q=-read returns the first 10 hits that don't contain read in the default search field, starting at index 0. To get the next set of ten hits, set the start parameter to 10:

../search?q=-read&start=10

If you want to retrieve 25 hits at a time, set the size parameter to 25. To get the first set of hits, you don't have to set the start parameter:

../search?q=-read&size=25

For subsequent requests, use the start parameter to retrieve the set of hits you want. For example, to get the third batch of 25 hits specify:

../search?q=-read&size=25&start=50