lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <>
Subject Re: Corrupt segments file full of zeros
Date Tue, 28 Jun 2011 09:36:09 GMT
You can try the CheckIndex tool. You feed it a directory and call .check()
and it reports the results.


On Tue, Jun 28, 2011 at 11:46 AM, Tarr, Gregory <>wrote:

> We have a problem with our fileserver where our indexes are hosted
> remotely, using Lucene 2.9.3.
> This can mean that a segments file is written which is full of ASCII
> zeros. Using the od -ah command, we get:
> 0000000 nul nul nul nul nul nul nul....etc
> If opened in Luke, the index opens successfully but has zero documents.
> Why does this open correctly in luke, and is there a procedure in the
> lucene code that can verify a segments file, e.g. check whether it
> refers to any segments?
> Thanks
> Greg
> Please consider the environment before printing this email.
> This message should be regarded as confidential. If you have received this
> email in error please notify the sender and destroy it immediately.
> Statements of intent shall only become binding when confirmed in hard copy
> by an authorised signatory.  The contents of this email may relate to
> dealings with other companies under the control of Detica Limited, details
> of which can be found at
> Detica Limited is registered in England under No: 1337451.
> Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP,
> England.

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