You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2018/04/26 13:03:00 UTC

[jira] [Commented] (LUCENE-8279) Improve CheckIndex on norms

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org