Hi Stian, then I'm confused, because what you're describing is the total hits of a one term search. You just need to watch out for fuzziness, like case sensitivity.
But an alternative is to use the TermEnum methods, but they are done for one field at a time: http://ferret.davebalmain.com/api/classes/Ferret/Index/TermEnum.html something like: te = index_reader.terms(:content) te.skip_to("monkey") puts "The term 'monkey' occurs in #{te.doc_freq} documents in the index" Am I warmer? ;) John. On Sun, 2007-04-29 at 22:59 +0200, Stian Grytøyr wrote: > On 4/29/07, John Leach <[EMAIL PROTECTED]> wrote: > > > then IndexWriter.doc_count > > > > http://ferret.davebalmain.com/api/classes/Ferret/Index/IndexWriter.html#M000089 > > > > so something like: myindex.writer.doc_count > > Thanks, but I still don't think we're quite there. I'm looking for the number > of documents (in the index) that, say, "foo" occurs in. > -- http://johnleach.co.uk _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

