[ https://issues.apache.org/jira/browse/LUCENE-10354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469765#comment-17469765 ]
ASF subversion and git services commented on LUCENE-10354: ---------------------------------------------------------- Commit 6c1b9f74e855b32c40be892abcd9c143e35bc30b in lucene's branch refs/heads/branch_9x from Adrien Grand [ https://gitbox.apache.org/repos/asf?p=lucene.git;h=6c1b9f7 ] 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: 1h > 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