Walter Underwood wrote:
Parse the results into a list and do something like this: Math.min(results.size(), numFound) // Java min(len(results), numFound) # Python
we're using json, but sure, I can calculate it :)
Doesn't seem all that hard, and not worth duplicating the info.
not hard, but useful information to have handy without additional manipulations on my part.
I don't ever remember needing to know the number of hits returned in a page. Either print the total or iterate over all returned rows. Next and prev buttons can be done with numFound, start, and the requested row count.
our pages are the results of multiple queries. so, given a max number of records per page (or total), the rows asked of query2 is max - query1, of query 3 max - query2 - query1, etc. makes pagination a pain, but what can you do when product wants what it wants ;)
anyway, I guess I'll just figure it out. thanks. --Geoff