lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject missing document count?
Date Wed, 18 Jun 2008 17:07:40 GMT
hi all :)

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

Mime
View raw message