lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kannan chandrasekaran <>
Subject How to get the number of unique terms in the inverted index
Date Thu, 27 May 2010 18:32:09 GMT
Hi All,

I was wondering  if there is a way to retrieve the number of unique terms in the lucene (
version 2.4.0) ... I am aware of the terms() && terms(Term) method that returns an
enumeration (TermEnum) but that involves iterating through the terms and couting them.  I
looking for something similar to numdocs() in the IndexReader class.  

Please help.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message