You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Artem Lokotosh <ar...@gmail.com> on 2012/11/14 16:57:31 UTC

Re: How to change the Solr 4.0 index format?

> Does it mean that Solr is creating the index in some kind of
> old format? Is it possible to change the format?

Try this
http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexUpgrader.html

On Wed, Nov 14, 2012 at 5:42 PM, tomw <to...@ubilix.com> wrote:
> Hi folks,
>
> I was trying to use an index created by Solr 4.0 by mahout. However,
> creating the vectors like:
>
> bin/mahout lucene.vector -d ~/apache-solr-4.0.0/example/solr/data/index
> --output /tmp/mahout/vectors --field text --idField id
> --dictOut /tmp/mahout/dict.txt --norm 2
>
> fails with an error:
>
> Exception in thread "main"
> org.apache.lucene.index.IndexFormatTooOldException: Format version is
> not supported
>
> which is kind of surprising as the entire stack is the latest one
> available. Does it mean that Solr is creating the index in some kind of
> old format? Is it possible to change the format? So far I have not found
> any entry in the config files which would indicate that.
>
>
> Any idea?
>
> Thanks,
>
> --tomw
>
>
>



-- 
Best regards,
Artem Lokotosh        mailto:arconen@gmail.com

Re: How to change the Solr 4.0 index format?

Posted by tomw <to...@ubilix.com>.
On Mi, 2012-11-14 at 18:50 +0200, Artem Lokotosh wrote:
> See https://issues.apache.org/jira/browse/MAHOUT-1112
> Seems mahout doesn't yet support lucene 4.0
> 
That indeed seems to be the reason. Running the test with solr 3.6.1
works fine.

thanks,

--tomw


Re: How to change the Solr 4.0 index format?

Posted by Artem Lokotosh <ar...@gmail.com>.
See https://issues.apache.org/jira/browse/MAHOUT-1112
Seems mahout doesn't yet support lucene 4.0

On Wed, Nov 14, 2012 at 6:38 PM, Jack Krupansky <ja...@basetechnology.com> wrote:
> Check the dates for the Solr/Lucene jars - they might be an early snapshot
> before the index format stabilized.
>
> Or, maybe that Mahout sub-project had a copy of some old Lucene data.
> Keeping old Lucene data around as opposed to reindexing is a rather bad
> idea.
>
> -- Jack Krupansky
>
> -----Original Message----- From: tomw
> Sent: Wednesday, November 14, 2012 8:17 AM
> To: solr-user@lucene.apache.org
> Subject: Re: How to change the Solr 4.0 index format?
>
>
> On Mi, 2012-11-14 at 17:57 +0200, Artem Lokotosh wrote:
>>
>> > Does it mean that Solr is creating the index in some kind of
>> > old format? Is it possible to change the format?
>>
>> Try this
>>
>> http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexUpgrader.html
>>
>
> I'm wondering why a newly created index, created with the latest release
> of solr 4.0 is "too old". Am I missing some config options? In
> particular as it states:
>
> This version of Lucene only supports indexes created with release 1.9
> and later.
>
> which is way back. Either it's a bug or some configuration or
> installation went wrong.
>
> --tomw
>
>
>



-- 
Best regards,
Artem Lokotosh        mailto:arconen@gmail.com

Re: How to change the Solr 4.0 index format?

Posted by Jack Krupansky <ja...@basetechnology.com>.
Check the dates for the Solr/Lucene jars - they might be an early snapshot 
before the index format stabilized.

Or, maybe that Mahout sub-project had a copy of some old Lucene data. 
Keeping old Lucene data around as opposed to reindexing is a rather bad 
idea.

-- Jack Krupansky

-----Original Message----- 
From: tomw
Sent: Wednesday, November 14, 2012 8:17 AM
To: solr-user@lucene.apache.org
Subject: Re: How to change the Solr 4.0 index format?

On Mi, 2012-11-14 at 17:57 +0200, Artem Lokotosh wrote:
> > Does it mean that Solr is creating the index in some kind of
> > old format? Is it possible to change the format?
>
> Try this
> http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexUpgrader.html
>

I'm wondering why a newly created index, created with the latest release
of solr 4.0 is "too old". Am I missing some config options? In
particular as it states:

This version of Lucene only supports indexes created with release 1.9
and later.

which is way back. Either it's a bug or some configuration or
installation went wrong.

--tomw




Re: How to change the Solr 4.0 index format?

Posted by tomw <to...@ubilix.com>.
On Mi, 2012-11-14 at 17:57 +0200, Artem Lokotosh wrote:
> > Does it mean that Solr is creating the index in some kind of
> > old format? Is it possible to change the format?
> 
> Try this
> http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/index/IndexUpgrader.html
> 

I'm wondering why a newly created index, created with the latest release
of solr 4.0 is "too old". Am I missing some config options? In
particular as it states:

 This version of Lucene only supports indexes created with release 1.9
and later.

which is way back. Either it's a bug or some configuration or
installation went wrong.

--tomw