lucene-dev mailing list archives

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


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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message