lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <>
Subject [jira] [Created] (LUCENE-4319) Rethink Fields.size() returning -1
Date Tue, 21 Aug 2012 13:27:37 GMT
Uwe Schindler created LUCENE-4319:

             Summary: Rethink Fields.size() returning -1
                 Key: LUCENE-4319
             Project: Lucene - Core
          Issue Type: Task
          Components: core/index
    Affects Versions: 4.0-BETA
            Reporter: Uwe Schindler

Fields.size() is allowed to return -1, if size of iterator is unknown. But for all codecs,
we know this size and also Fields implements Iterable (see also discussion on LUCENE-4315).

We should think about enfocing it to be defined.

Some things to do:
- Maybe automatically make Fields.size() base class iterate, if not reimplemented (risky!).
- MultiFields.size() must implement it

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


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

View raw message