[ https://issues.apache.org/jira/browse/LUCENE-1179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1179. ---------------------------------------- Resolution: Fixed Fix Version/s: 2.4 2.3.1 Fixed on trunk (2.4) and 2.3 branch (2.3.1). > AssertionError on creating doc containing field with empty string as field > name > ------------------------------------------------------------------------------- > > Key: LUCENE-1179 > URL: https://issues.apache.org/jira/browse/LUCENE-1179 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.3 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.3.1, 2.4 > > > Spinoff from here: > http://www.gossamer-threads.com/lists/lucene/java-user/58496 > Pre-2.3 you were allowed to add Fields to a Document where the field name is > the empty string. In 2.3.0 it broke: you hit this during flush: > {code} > java.lang.AssertionError > at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:143) > at > org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2290) > at > org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:1985) > at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:539) > at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2497) > at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2397) > at > org.apache.lucene.index.IndexWriter.closeInternal(IndexWriter.java:1204) > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1178) > at org.apache.lucene.index.IndexWriter.close(IndexWriter.java:1153) > {code} > The bug is just an over-aggressive assert statement. I'll commit a fix > shortly & port to 2.3 branch for 2.3.1 release. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]