lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Seltzer (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name
Date Mon, 12 Mar 2012 15:34:37 GMT
MemoryIndex does not allow user to add multiple values for a single field name
------------------------------------------------------------------------------

                 Key: LUCENE-3865
                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/index
    Affects Versions: 3.5
         Environment: All
            Reporter: Dave Seltzer
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message