lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-1228) IndexWriter.commit() does not update the index version
Date Thu, 13 Mar 2008 20:16:24 GMT

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

Doron Cohen updated LUCENE-1228:
--------------------------------

        Lucene Fields: [New, Patch Available]  (was: [Patch Available, New])
    Affects Version/s:     (was: 2.3.1)
                           (was: 2.3)

> IndexWriter.commit()  does not update the index version
> -------------------------------------------------------
>
>                 Key: LUCENE-1228
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1228
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.4
>            Reporter: Doron Cohen
>            Assignee: Doron Cohen
>         Attachments: lucene-1228-commit-reopen.patch
>
>
> IndexWriter.commit() can update the index *version* and *generation* but the update of
*version* is lost.
> As result added documents are not seen by IndexReader.reopen().
> (There might be other side effects that I am not aware of).
> The fix is 1 line - update also the version in SegmentsInfo.updateGeneration().
> (Finding this line involved more lines though... :-) )

-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message