Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 54580 invoked from network); 3 Mar 2005 20:12:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 20:12:41 -0000 Received: (qmail 45402 invoked by uid 500); 3 Mar 2005 20:12:40 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 45374 invoked by uid 500); 3 Mar 2005 20:12:39 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 45360 invoked by uid 99); 3 Mar 2005 20:12:39 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.alterpoint.com (HELO exchange.inside.eclyptic.com) (66.219.38.35) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 12:12:38 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5202D.578C87E8" Subject: Checking an index Date: Thu, 3 Mar 2005 14:12:36 -0600 Message-ID: <3F227B042654B049A3C1B7B10FF65A0814EFC9@exchange.inside.eclyptic.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Checking an index Thread-Index: AcUgLVeKYkYZuJjtTKWNBKG9Z0yl9Q== From: "Ravi Rao" To: Cc: "Ravi Rao" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5202D.578C87E8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable All, I have written a utility that will check if an index has been corrupted. The implementation is (my understanding of) an idea proposed, to the best of my knowledge, by Doug Cutting on the lucene-user's mailing list. NullDirectory provides input and output streams that don't themselves do anything useful. That is, there is no real index behind the directory. However one can merge another index with an instance of null index thereby causing a 'read' of the other index. This 'read' will fail if that index is corrupt. If there is any interest would someone please tell me how I can contribute this to the sandbox. It requires more testing and quite possibly improvement. However I would like to get the process of contributing started. Thanks, --=20 Ravi(ndra) Rao/ Alterpoint Inc. ------_=_NextPart_001_01C5202D.578C87E8--