lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-8029) Fields.size() should not return -1
Date Tue, 31 Oct 2017 14:49:00 GMT

    [ 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


Mime
View raw message