lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] [Updated] (LUCENE-3461) Adding same IndexDocValuesField twice trips assert
Date Sun, 25 Sep 2011 15:12:26 GMT


Michael McCandless updated LUCENE-3461:

    Attachment: LUCENE-3461.patch

Patch, catching more than one IDV fields in the same doc, and throwing IllegalArgExc.

Test passes now.

> Adding same IndexDocValuesField twice trips assert
> --------------------------------------------------
>                 Key: LUCENE-3461
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 4.0
>         Attachments: LUCENE-3461.patch, LUCENE-3461.patch
> Doc values fields are single-valued by design, ie a given field name can only occur once
in the document.
> But if you accidentally add it more than once, you get an assert error, which is spooky
because if you run w/o asserts maybe something eviler happens.
> I think we should explicitly check for this and throw clear exc since user could easily
do this by accident.

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message