Try optimising your index in 3.5 before migrating to 4.2, as this should
upgrade all segments to the 3.x format.

Note however, you are likely to find issues using an index from 1.4 in a
4.x system. You will have to maintain the old field definitions using
the old components, which will likely render some features
non-functioning.

For example, I have an index in that situation. My date fields were of
type DateField not TrieDateField, meaning I could not use them in boost
functions.

If you can, try to think of and plan a way to re-index your content.

Upayavira

On Fri, Apr 12, 2013, at 12:24 PM, Montu v Boda wrote:
> Hi
> 
> any body can help on my below question please.
> 
> how to migrate solr 1.4 index to solr 4.2 index?
> 
> I have do the following but not work completely.
> 
> i have migrate 1.4 index to 3.5 index and it's done successfully.
> 
> but now when i try to migrate 3.5 index to 4.2 index then it is not
> migrate
> successfully and give me the below error.
> 
> INFO: [] webapp=/solr35 path=/replication
> params={file=_zp.nrm&command=filecontent&checksum=true&generation=1190&qt=/replication&wt=filestream}
> status=0 QTime=0 
> Apr 12, 2013 4:50:03 PM org.apache.solr.core.SolrCore execute
> INFO: [] webapp=/solr35 path=/replication
> params={file=_yj.frq&command=filecontent&checksum=true&generation=1190&qt=/replication&wt=filestream}
> status=0 QTime=0 
> Apr 12, 2013 4:50:03 PM org.apache.solr.core.SolrCore execute
> INFO: [] webapp=/solr35 path=/replication
> params={file=_zp.tis&command=filecontent&checksum=true&generation=1190&qt=/replication&wt=filestream}
> status=0 QTime=0 
> Apr 12, 2013 4:50:03 PM org.apache.solr.core.SolrCore execute
> INFO: [] webapp=/solr35 path=/replication
> params={file=_yj_8.del&command=filecontent&checksum=true&generation=1190&qt=/replication&wt=filestream}
> status=0 QTime=0 
> Apr 12, 2013 4:50:03 PM org.apache.solr.handler.SnapPuller
> fetchLatestIndex
> INFO: Total time taken for download : 3 secs
> Apr 12, 2013 4:50:04 PM org.apache.solr.update.DefaultSolrCoreState
> newIndexWriter
> INFO: Creating new IndexWriter...
> Apr 12, 2013 4:50:04 PM org.apache.solr.update.DefaultSolrCoreState
> newIndexWriter
> INFO: Waiting until IndexWriter is unused... core=collection1
> Apr 12, 2013 4:50:04 PM org.apache.solr.core.CachingDirectoryFactory
> closeCacheValue
> INFO: looking to close D:\solr421\data\index.20130412165000031
> [CachedDir<<refCount=0;path=D:\solr421\data\index.20130412165000031;done=true>>]
> Apr 12, 2013 4:50:04 PM org.apache.solr.core.CachingDirectoryFactory
> close
> INFO: Closing directory: D:\solr421\data\index.20130412165000031
> Apr 12, 2013 4:50:04 PM org.apache.solr.core.CachingDirectoryFactory
> closeCacheValue
> INFO: Removing directory before core close:
> D:\solr421\data\index.20130412165000031
> Apr 12, 2013 4:50:04 PM org.apache.solr.common.SolrException log
> SEVERE: SnapPull failed :org.apache.solr.common.SolrException: Index
> fetch
> failed : 
>       at 
> org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:459)
>       at
> org.apache.solr.handler.ReplicationHandler.doFetch(ReplicationHandler.java:281)
>       at org.apache.solr.handler.SnapPuller$1.run(SnapPuller.java:222)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>       at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
>       at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
>       at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown
> Source)
>       at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
> Source)
>       at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format
> version is not supported (resource:
> SimpleFSIndexInput(path="D:\solr421\data\index\_yj.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.SegmentInfos$1.doBody(SegmentInfos.java:347)
>       at
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:783)
>       at
> org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:630)
>       at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:343)
>       at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:673)
>       at 
> org.apache.solr.update.SolrIndexWriter.<init>(SolrIndexWriter.java:77)
>       at 
> org.apache.solr.update.SolrIndexWriter.create(SolrIndexWriter.java:64)
>       at
> org.apache.solr.update.DefaultSolrCoreState.createMainIndexWriter(DefaultSolrCoreState.java:198)
>       at
> org.apache.solr.update.DefaultSolrCoreState.newIndexWriter(DefaultSolrCoreState.java:180)
>       at
> org.apache.solr.update.DirectUpdateHandler2.newIndexWriter(DirectUpdateHandler2.java:615)
>       at
> org.apache.solr.handler.SnapPuller.openNewWriterAndSearcher(SnapPuller.java:622)
>       at 
> org.apache.solr.handler.SnapPuller.fetchLatestIndex(SnapPuller.java:446)
>       ... 10 more
> 
> Apr 12, 2013 4:50:23 PM org.apache.solr.core.SolrCore execute
> INFO: [] webapp=/solr35 path=/replication
> params={slave=false&command=details&qt=/replication&wt=javabin&version=2}
> status=0 QTime=0 
> Apr 12, 2013 4:50:23 PM org.apache.solr.core.SolrCore execute
> INFO: [collection1] webapp=/solr421 path=/replication
> params={command=details&_=1365765623945&wt=json} status=0 QTime=0 
> 
> 
> Thanks & Regards
> Montu v Boda
> 
> 
> 
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-migrate-solr-1-4-index-to-solr-4-2-index-tp4055531.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to