Parse the results into a list and do something like this:

  Math.min(results.size(), numFound)  // Java
  min(len(results), numFound)         # Python

Doesn't seem all that hard, and not worth duplicating the info.

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.

wunder

On 6/18/08 10:07 AM, "Geoffrey Young" <[EMAIL PROTECTED]> wrote:
> 
> maybe I'm just missing it, but I don't see a way to consistently (and
> easily) know the number of returned documents without a lot of acrobatics.
> 
>    numFound represents the entire number of matching documents
> 
>    if numFound <= rows then numFound is the number of documents in the
> response
> 
>    if numFound > rows then rows is the number of documents in the response
> 
>    if echoParams=none is set I need to count docs myself
> 
> is there a reason for this complexity?  a numDocs response field would
> seem much simpler.
> 
> --Geoff

Reply via email to