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

i30817 commented on LUCENE-4754:
--------------------------------

Here it is:


Feb 05, 2013 6:33:11 PM i3.gutenberg.GutenbergSearch$1 run
WARNING: Indexing interrupted
org.apache.lucene.index.IndexFormatTooOldException: Format version is not 
supported (resource: 
MMapIndexInput(path="/home/paulo/.config/bookjar/gutenberg/_0.cfs") 
[slice=_0.fdx]): 1 (needs to be between 2 and 3). This version of Lucene only 
supports indexes created with release 3.0 and later.
        at 
org.apache.lucene.codecs.lucene3x.Lucene3xStoredFieldsReader.checkCodeVersion(Lucene3xStoredFieldsReader.java:119)
        at 
org.apache.lucene.codecs.lucene3x.Lucene3xSegmentInfoReader.readLegacyInfos(Lucene3xSegmentInfoReader.java:74)
        at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:312)
        at 
org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:172)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:704)
        at i3.gutenberg.GutenbergSearch.prepare(GutenbergSearch.java:148)
        at i3.gutenberg.GutenbergSearch.access$000(GutenbergSearch.java:44)
        at i3.gutenberg.GutenbergSearch$1.run(GutenbergSearch.java:125)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)

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

Reply via email to