You've asked to different questions - you can use IndexReader.numDocs
() to find the total number of documents.
Within a date range - how did you index the dates? If the dates are
in lexicographical order, you can walk all the terms in that range
using TermEnum from IndexReader.terms(Term t) where t is the first
term in the date range. You will then need to get the termDocs(t)
for each of the matching terms. So it is possible without a search.
Erik
On Aug 7, 2005, at 7:47 AM, Ben wrote:
Hi
Is it possible to count the total number of documents in the index
without requesting a search? I would like to count the total documents
in the index within a date range.
Thanks,
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]