lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4859) Expose more stats on IndexReader
Date Wed, 20 Mar 2013 15:23:15 GMT


Robert Muir commented on LUCENE-4859:

I think maybe it should be final on AtomicReader too, as its just a sugar API for terms(field)
+ ....

this way filterreaders are less overwhelmed and there is no possibility of inconsistency.

Really if a reader returns anything that would be inconsistent with its Terms, its wrong,
so why give it the chance :)
> Expose more stats on IndexReader
> --------------------------------
>                 Key: LUCENE-4859
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>         Attachments: LUCENE-4859.patch
> IndexReader exposes stats like totalTermFreq(term) and docFreq(term). I'd like to add
more stats from Terms, e.g. getDocCount/getSumDocFreq/getSumTotalTermFreq(field) for convenience.
The implementation is very easy to do on CompositeReader, so I'll add these impls to BaseCompositeReader.
I'll attach a patch shortly.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message