You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2013/02/05 15:43:12 UTC

[jira] [Commented] (LUCENE-4754) IndexWriter can't handle old lucene inex format when opened with create mode

    [ https://issues.apache.org/jira/browse/LUCENE-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571350#comment-13571350 ] 

Michael McCandless commented on LUCENE-4754:
--------------------------------------------

Actually this is sort of odd: since IW was asked to CREATE ... it should not have been reading anything from the index that would lead to IndexFormatTooOldException.

Do you have the full exception?  Did you hit the exception on opening IndexWriter, or later (during indexing/committing or something).
                
> IndexWriter can't handle old lucene inex format when opened with create mode
> ----------------------------------------------------------------------------
>
>                 Key: LUCENE-4754
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4754
>             Project: Lucene - Core
>          Issue Type: Bug
>    Affects Versions: 4.1
>            Reporter: i30817
>            Priority: Minor
>
>         IndexWriter indexWriter = new IndexWriter(cacheDir,
>                 new IndexWriterConfig(Version.LUCENE_41, englishAnalyzer).
>                 setOpenMode(IndexWriterConfig.OpenMode.CREATE));
> Fails with CorruptedIndex subclass, IndexTooOldException (or something like that), even though the config would just replace the files. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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