Adrien Grand created LUCENE-10354:
-------------------------------------

             Summary: Clarify contract of codec APIs with missing/disabled 
fields
                 Key: LUCENE-10354
                 URL: https://issues.apache.org/jira/browse/LUCENE-10354
             Project: Lucene - Core
          Issue Type: Task
            Reporter: Adrien Grand


The question has come up  a few times of how codec APIs should react to fields 
that are missing or do not have the relevant feature enabled.

This issue proposes that we improve javadocs and AssertingCodec following the 
same model as doc values and norms:
 - The behavior of codec APIs on fields that are missing or don't have the 
feature enabled is undefined.
 - CodecReader is responsible for checking FieldInfos before delegating to 
codec APIs.
 - AssertingCodec ensures that we never call codec APIs on missing/disabled 
fields.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to