[ https://issues.apache.org/jira/browse/LUCENE-10354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469457#comment-17469457 ]
ASF subversion and git services commented on LUCENE-10354: ---------------------------------------------------------- Commit c8651afde70c62b4a4f5618b9483953bd2bc1bb8 in lucene's branch refs/heads/main from Adrien Grand [ https://gitbox.apache.org/repos/asf?p=lucene.git;h=c8651af ] LUCENE-10354: Clarify contract of codec APIs with missing/disabled fields. (#583) > 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 > Priority: Minor > Time Spent: 40m > Remaining Estimate: 0h > > 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