[ 
https://issues.apache.org/jira/browse/LUCENE-8279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16453981#comment-16453981
 ] 

Adrien Grand commented on LUCENE-8279:
--------------------------------------

Here is a patch. There is one case when terms and norms may go out-of-sync: 
when a document fails indexing eg. because the consumption of the token stream 
triggers an exception. In such a case you could end up with terms for this 
document but no norm. Since IndexWriter immediately marks the document as 
deleted in such a case, the new check only verifies that terms and norms agree 
on live documents.

> Improve CheckIndex on norms
> ---------------------------
>
>                 Key: LUCENE-8279
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8279
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-8279.patch
>
>
> We should improve CheckIndex to make sure that terms and norms agree on which 
> documents have a value on an indexed field.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to