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

MemoryIndex does not allow user to add multiple values for a single field name

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.5
    • 4.1, 6.0
    • modules/other
    • None
    • All

    • New

    Description

      When using MemoryIndex.addField the following operation throws an IllegalArgumentException:

      index.addField("foobar", "value1", LuceneAnalyzer);
      index.addField("foobar", "value2", LuceneAnalyzer);

      This throws:
      java.lang.IllegalArgumentException: field must not be added more than once

      According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

      Attachments

        Issue Links

          Activity

            People

              simonw Simon Willnauer
              daveseltzer Dave Seltzer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified