Re: Term collection frequency

2009-06-22 Thread Michael McCandless
There's IndexReader.docFreq(Term), which returns the number of documents that the term occurred in (excluding un-merged deletions). But the global count of how many times a Term occurred across all docs is not stored. You'd have to get a TermDocs enum for that Term, iterate through all docs, and

Term collection frequency

2009-06-22 Thread Murat Yakici
Hi, As far as I know, there is no public API to get a term's collection frequency in Lucene, apart from writing routines with TFV or TermEnum. Does Lucene store the number of times a term occur in the index? If yes, can someone direct me to the low-level api where I can get such information throug