[
https://issues.apache.org/jira/browse/LUCENE-4242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420548#comment-13420548
]
Michael McCandless commented on LUCENE-4242:
--------------------------------------------
bq. A pro-rate is just a guess since we wouldn't be guaranteeing that the
"real" docFreq would be below the max.
It is a guess and we should document that it's only approximate.
The basic idea seems simple: the deleted docs won't actually be stored in DTO
yet the docFreq is counting them, so you're rejecting terms that would have
been below the cutoff. I think it makes sense to pro-rate, but I agree the
caller can easily do so ...
roman maybe you can shed some more light on your use case?
> UnInverted cache uses term freq to filter out terms (but deleted docs are
> included in the freq count)
> -----------------------------------------------------------------------------------------------------
>
> Key: LUCENE-4242
> URL: https://issues.apache.org/jira/browse/LUCENE-4242
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/index
> Affects Versions: 4.0
> Reporter: roman
> Priority: Minor
> Attachments: LUCENE-4242.patch, LUCENE-4242.patch, LUCENE-4242.patch
>
>
> TermEnum.docFreq() count is used to compute uninverted index
> (DocTermOrds.uninvert()). The code goes like:
> final int df = te.docFreq();
> if (df <= maxTermDocFreq) {
> So, if there are deleted documents in the index and maxTermDocFreq is
> low, then the term will be excluded (even if the freq of the livedocs
> is OK). Most likely, the cache will be incomplete.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]