[ 
https://issues.apache.org/jira/browse/LUCENE-3529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir resolved LUCENE-3529.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 3.5

Thanks Mike, your fix from 3183 was correct all along... we should have just 
gone with it originally...
                
> creating empty field + empty term leads to invalid index
> --------------------------------------------------------
>
>                 Key: LUCENE-3529
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3529
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 3.4
>            Reporter: Robert Muir
>             Fix For: 3.5
>
>         Attachments: LUCENE-3529.patch, LUCENE-3529_test.patch
>
>
> Spinoff from LUCENE-3526.
> * if you create new Field("", ""), you get IllegalArgumentException from 
> Field's ctor: "name and value cannot both be empty"
> * But there are tons of other ways to index an empty term for the empty field 
> (for example initially make it "garbage" then .setValue(""), or via 
> tokenstream).
> * If you do this, and you have assertions enabled, you will trip an assert 
> (the assert is fixed in trunk, in LUCENE-3526)
> * But If you don't have assertions enabled, you will create a corrupt index: 
> test: terms, freq, prox...ERROR [term : docFreq=1 != num docs seen 0 + num 
> docs deleted 0]

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to