Is there a fast way to determine the total number of terms inside an index?

Currently I only found the way to walk through the TermEnumeration, i.e.

TermEnum termEnum4TermCount = reader.terms();
int iTermCount = 0;

while (termEnum4TermCount.next())
   iTermCount++;

termEnum4TermCount.close();


Thanks for all answers!

Christian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to