You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2017/10/31 14:49:00 UTC

[jira] [Commented] (LUCENE-8029) Fields.size() should not return -1

    [ https://issues.apache.org/jira/browse/LUCENE-8029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226917#comment-16226917 ] 

Robert Muir commented on LUCENE-8029:
-------------------------------------

My concern on this one is the expensive recomputation cost in e.g. MultiTerms, i don't like that its hidden.

What callers are there other than per-segment stuff just looking to use it for sizing purposes? Its not passed to the scoring API or anything, so i don't think its much like e.g. totalTermFreq etc all.

> Fields.size() should not return -1
> ----------------------------------
>
>                 Key: LUCENE-8029
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8029
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>
> All call sites of Fields.size() recompute it if it is not available. We should make the API easier to use and require that it never returns -1.



--
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