Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3461

Adding same IndexDocValuesField twice trips assert

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • None
    • None
    • New

    Description

      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.

      Attachments

        1. LUCENE-3461.patch
          1 kB
          Michael McCandless
        2. LUCENE-3461.patch
          5 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: