[ https://issues.apache.org/jira/browse/LUCENE-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12695787#action_12695787 ]
Uwe Schindler commented on LUCENE-1586: --------------------------------------- Hi Mike, why not just use getSequentialSubReaders() in the default implementation and recursively sum up all term counts? getSequentialSubReaders is part of the IndexReader API, so also available in the abstract class. SegmentReader can override the method and return its "real" count. If getSequentialSubReaders() returns null, throw the UOE. > add IndexReader.getUniqueTermCount > ---------------------------------- > > Key: LUCENE-1586 > URL: https://issues.apache.org/jira/browse/LUCENE-1586 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 2.9 > > Attachments: LUCENE-1586.patch > > > Simple API to return number of unique terms (across all fields). Spinoff > from here: > http://www.lucidimagination.com/search/document/536b22e017be3e27/term_limit -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org