You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2017/10/25 13:49:00 UTC
[jira] [Updated] (LUCENE-8007) Require that codecs always store
totalTermFreq, sumDocFreq and sumTotalTermFreq
[ https://issues.apache.org/jira/browse/LUCENE-8007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrien Grand updated LUCENE-8007:
---------------------------------
Attachment: LUCENE-8007.patch
Here is a patch. The following index statistics are now required:
- Terms.size()
- Terms.getSumDocFreq()
- Terms.geDocCount()
- TermsEnum.totalTermFreq() if freqs are stored
- Terms.getSumTotalTermFreq() if freqs are stored
> Require that codecs always store totalTermFreq, sumDocFreq and sumTotalTermFreq
> -------------------------------------------------------------------------------
>
> Key: LUCENE-8007
> URL: https://issues.apache.org/jira/browse/LUCENE-8007
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Adrien Grand
> Fix For: master (8.0)
>
> Attachments: LUCENE-8007.patch
>
>
> Javadocs allow codecs to not store some index statistics. Given discussion that occurred on LUCENE-4100, this was mostly implemented this way to support pre-flex codecs. We should now require that all codecs store these statistics.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org