[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to