you can use the lucene jar with solr to invoke the CheckIndex method -
this will  possibly allow you to recover if you pass the -fix param.

You may lose some docs, however, so this is only viable if you can,
for example, query to check what's missing.

The command looks like (from the root of the solr svn checkout):

java -ea:org.apache.lucene -cp lib/lucene-core-2.9-dev.jar
org.apache.lucene.index.CheckIndex [path to index directory]

For example, to check the example index:

java -ea:org.apache.lucene -cp lib/lucene-core-2.9-dev.jar
org.apache.lucene.index.CheckIndex example/solr/data/index/

-Peter

On Mon, May 25, 2009 at 4:42 AM, Wang Guangchen <guangchen...@gmail.com> wrote:
> Hi everyone,
>
> I have 8m docs to index, and each doc is around 50kb. The solr crashed in
> the middle of indexing. error message said that one of the file in the data
> directory is missing. I don't know why this is happened.
>
> So right now I have to find a way to recover the index to avoid re-index. Is
> there anyone know any tools or method to recover the crashed index? Please
> help.
>
> Thanks a lot.
>
> Regards
> GC
>



-- 
Peter M. Wolanin, Ph.D.
Momentum Specialist,  Acquia. Inc.
peter.wola...@acquia.com

Reply via email to