Ah ok,

then IndexWriter.doc_count

http://ferret.davebalmain.com/api/classes/Ferret/Index/IndexWriter.html#M000089

so something like: myindex.writer.doc_count

John.

On Sat, 2007-04-28 at 19:45 +0200, Stian Grytøyr wrote:
> On 4/28/07, John Leach <[EMAIL PROTECTED]> wrote:
> 
> > when you do a search, the array you get back is actually a TopDocs
> > object, which has a total_hits value.
> 
> Sorry, my question was imprecise. I meant how many documents in the
> entire corpus (or index), not for a particular query.
> 
-- 
http://johnleach.co.uk

_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to