On Thu, Jun 7, 2012 at 1:17 PM, DeWitt Clinton <
dcli...@gmail.com> wrote:
> Note that 'itemsPerPage' is different than what most people think of as
> 'count', in that you can have a page size greater than the number of results
> contained in a particular response. (Happens often at the end of a list, or
> if some results were filtered out for some reason.) In fact, the reason we
> called it 'itermsPerPage' was simply to be explicit about it being different
> than 'count'.
>
> In retrospect, I should have just called it 'pageSize', and then no one
> would have been confused.
>
Yes... the actual language I use within the draft to describe itemsPerPage is:
"A non-negative integer specifying the maximum number of
objects that will be included in the value of the <spanx
style="verb">items</spanx>
array."
And then further on...
"Note that, as the example illustrates, the totalItems property
specifies the total
number of items that can be considered to be a part of the collection
as a whole, while the itemsPerPage indicates the maximum number of
objects that will be included in this particular subset. The actual
number of objects
included in the value of the items property MAY be equal to or less than
either of these values."
> We used 'startIndex' rather than 'offset' because OpenSearch supports both
> page and ordinal-based offsetting (both startIndex and startPage), and we
> wanted to disambiguate. Not sure if that matters here, though.
>
I do not believe it does. I, personally, have not seen any specific
use case in which we need to know the startPage offset.
We have the paging links, total collection size and items per page,
the rest can be calculated.