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 Giovanni Fernandez-Kincade <gf...@capitaliq.com> on 2010/01/08 23:09:27 UTC
checkindex
I've seen many mentions of the Lucene CheckIndex tool, but where can I find it? Is there any documentation on how to use it?
I noticed Luke has it built-in, but I can't get Luke to open my index with the "Don't open IndexReader(when opening corrupted index)" option check. Opening even an index I know is valid doesn't work using this option:
[cid:image001.png@01CA9085.38516930]
[cid:image002.png@01CA9085.55D764F0]
RE: checkindex
Posted by Giovanni Fernandez-Kincade <gf...@capitaliq.com>.
Yeah that worked. Thanks!
-----Original Message-----
From: Ian Kallen [mailto:spidaman.list@gmail.com]
Sent: Friday, January 08, 2010 5:32 PM
To: solr-user@lucene.apache.org
Subject: Re: checkindex
When I needed to use it, I couldn't find docs for it either but it's straight forward. Here's what I did:
un-jar the solr war file to find the lucene jar that solr was using and run CheckIndex like this
java -cp lucene-core-2.9-dev.jar org.apache.lucene.index.CheckIndex /path/to/solr/data/index/
to actually *fix* the index, add the "-fix" argument
java -cp lucene-core-2.9-dev.jar org.apache.lucene.index.CheckIndex -fix /path/to/solr/data/index/
hope that helps,
-Ian
On 1/8/10 2:09 PM, Giovanni Fernandez-Kincade wrote:
>
> I've seen many mentions of the Lucene CheckIndex tool, but where can I
> find it? Is there any documentation on how to use it?
>
> I noticed Luke has it built-in, but I can't get Luke to open my index
> with the "Don't open IndexReader(when opening corrupted index)" option
> check. Opening even an index I know is valid doesn't work using this
> option:
>
--
Ian Kallen
blog: http://www.arachna.com/roller/spidaman
tweetz: http://twitter.com/spidaman
vox: 925.385.8426
Re: checkindex
Posted by Ian Kallen <sp...@gmail.com>.
When I needed to use it, I couldn't find docs for it either but it's straight forward. Here's what I did:
un-jar the solr war file to find the lucene jar that solr was using and run CheckIndex like this
java -cp lucene-core-2.9-dev.jar org.apache.lucene.index.CheckIndex /path/to/solr/data/index/
to actually *fix* the index, add the "-fix" argument
java -cp lucene-core-2.9-dev.jar org.apache.lucene.index.CheckIndex -fix /path/to/solr/data/index/
hope that helps,
-Ian
On 1/8/10 2:09 PM, Giovanni Fernandez-Kincade wrote:
>
> I've seen many mentions of the Lucene CheckIndex tool, but where can I
> find it? Is there any documentation on how to use it?
>
> I noticed Luke has it built-in, but I can't get Luke to open my index
> with the "Don't open IndexReader(when opening corrupted index)" option
> check. Opening even an index I know is valid doesn't work using this
> option:
>
--
Ian Kallen
blog: http://www.arachna.com/roller/spidaman
tweetz: http://twitter.com/spidaman
vox: 925.385.8426