lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Kiran <ravi.bhas...@gmail.com>
Subject Re: Index compatibility 1.4 Vs 3.1 Trunk
Date Thu, 05 Aug 2010 20:01:32 GMT
Hello Mr. Horsetter,
                            I again tried the code from trunk '
https://svn.apache.org/repos/asf/lucene/dev/trunk' on solr 1.4 index and it
gave me the following IndexFormatTooOldExceptio which in the first place
prompted me to think the indexes are incompatible. Any ideas ?

java.lang.RuntimeException:
org.apache.lucene.index.IndexFormatTooOldException: Format version is not
supported in file '_1d60.fdx': 1 (needs to be between 2 and 2). This version
of Lucene only supports indexes created with release 3.0 and later. at
org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1067) at
org.apache.solr.core.SolrCore.<init>(SolrCore.java:582) at
org.apache.solr.core.CoreContainer.create(CoreContainer.java:453) at
org.apache.solr.core.CoreContainer.load(CoreContainer.java:308) at
org.apache.solr.core.CoreContainer.load(CoreContainer.java:198) at
org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:123)
at
org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:86)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:273)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:385)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:119)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4529)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5348)
at com.sun.enterprise.web.WebModule.start(WebModule.java:353) at
com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58) at
com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
at
com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:341)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at
java.util.concurrent.FutureTask.run(FutureTask.java:138) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619) Caused by:
org.apache.lucene.index.IndexFormatTooOldException: Format version is not
supported in file '_1d60.fdx': 1 (needs to be between 2 and 2). This version
of Lucene only supports indexes created with release 3.0 and later. at
org.apache.lucene.index.FieldsReader.<init>(FieldsReader.java:109) at
org.apache.lucene.index.SegmentReader$CoreReaders.openDocStores(SegmentReader.java:242)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:523) at
org.apache.lucene.index.SegmentReader.get(SegmentReader.java:494) at
org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:133) at
org.apache.lucene.index.ReadOnlyDirectoryReader.<init>(ReadOnlyDirectoryReader.java:28)
at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:98)
at
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:630)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:92) at
org.apache.lucene.index.IndexReader.open(IndexReader.java:415) at
org.apache.lucene.index.IndexReader.open(IndexReader.java:294) at
org.apache.solr.core.StandardIndexReaderFactory.newReader(StandardIndexReaderFactory.java:38)
at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1056) ... 21 more




Ravi Kiran Bhaskar

On Tue, Aug 3, 2010 at 11:15 AM, Ravi Kiran <ravi.bhaskar@gmail.com> wrote:

> Hello Mr.Hostetter,
>                             Thank you very much for the clarification. I do
> remember that when I first deployed the solr code from trunk on a test
> server I couldnt open the index (created via 1.4) even via the solr admin
> page, It kept giving me corrupted index EOF kind of exception, so I was
> curious. Let me try it out again and report to you with the exact error.
>
>
> On Mon, Aug 2, 2010 at 4:28 PM, Chris Hostetter <hossman_lucene@fucit.org>wrote:
>
>> :         I am trying to use the solr code from '
>> : https://svn.apache.org/repos/asf/lucene/dev/trunk' as my design
>> warrants use
>> : of PolyType fields. My understanding is that the indexes are
>> incompatible,
>> : am I right ?. I have about a million docs in my index (indexed via solr
>> : 1.4). Is re-indexing my only option or is there a tool of some sort to
>> : convert the 1.4 index to 3.1 format ?
>>
>> a) the "trunk" is what will ultimately be Solr 4.x, not 3.x ... for the
>> 3.x line there is a 3x branch...
>>
>> http://wiki.apache.org/solr/Solr3.1
>> http://wiki.apache.org/solr/Solr4.0
>>
>> b) The 3x branch can read indexes created by Solr 1.4 -- the first time
>> you add a doc and commit the new segments wil automaticly be converted to
>> the new format.  I am fairly certian that as of this moment, the 4x trunk
>> can also read indexes created by Solr 1.4, with the same automatic
>> converstion taking place.
>>
>> c)  If/When the trunk can no longer read Solr 1.4 indexes, there will be
>> a tool provided for "upgrading" index versions.
>>
>>
>> -Hoss
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message