Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3638 invoked from network); 26 Jul 2007 13:00:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 12:59:59 -0000 Received: (qmail 39675 invoked by uid 500); 26 Jul 2007 12:59:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 39633 invoked by uid 500); 26 Jul 2007 12:59:52 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 39622 invoked by uid 99); 26 Jul 2007 12:59:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 05:59:52 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of markrmiller@gmail.com designates 66.249.82.225 as permitted sender) Received: from [66.249.82.225] (HELO wx-out-0506.google.com) (66.249.82.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 05:59:51 -0700 Received: by wx-out-0506.google.com with SMTP id i28so396268wxd for ; Thu, 26 Jul 2007 05:59:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=chtbYU+jpTNBBF4N5g7Dt7S6Wg+gNVAePn+kQrSk77ef1vX5c0BpDUVj4RMasANcll1aC7Txn+v0P5u5Y+LLu7o7uVpsFnxukpFdhqGPh9IpwAOklAAkmAyrGW931BUUyEcErIg5a+lC8z24s1s5d5oeB0ypsoKWa2G0pv9dW2o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=KwVKd6uqCvgzUZ3mQBqmPEGkk1y3vTBuIOVTBjg3UMaaAHue3xadVz3FibU4hNt7Dv4vEjn1CezGJ3xbVTXZueGphfx7XphE7aCW2ek0aZkK5qcocTUkmZKo+mSVSatqFRuQgq8Es6RVOUXRnlZuoVbdErOXKAY8Kgo4f+EJaVY= Received: by 10.100.106.5 with SMTP id e5mr1214466anc.1185454770217; Thu, 26 Jul 2007 05:59:30 -0700 (PDT) Received: by 10.100.38.5 with HTTP; Thu, 26 Jul 2007 05:59:30 -0700 (PDT) Message-ID: Date: Thu, 26 Jul 2007 08:59:30 -0400 From: "Mark Miller" To: java-user@lucene.apache.org Subject: Re: Delete corrupted doc In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_209004_22453143.1185454770169" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_209004_22453143.1185454770169 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline You know, on second though, a merge shouldn't even try to access a doc > maxdoc (i think). Have you just tried an optimize? On 7/25/07, Rafael Rossini wrote: > > Hi guys, > > Is there a way of deleting a document that, because of some > corruption, > got and docID larger than the maxDoc() ? I=B4m trying to do this but I ge= t > this Exception: > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Arra= y > index out of range: 106577 > at org.apache.lucene.util.BitVector.set(BitVector.java:53) > at org.apache.lucene.index.SegmentReader.doDelete (SegmentReader.java > :301) > at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java > :674) > at org.apache.lucene.index.MultiReader.doDelete(MultiReader.java:125) > at org.apache.lucene.index.IndexReader.deleteDocument (IndexReader.jav= a > :674) > at teste.DeleteError.main(DeleteError.java:9) > > Thanks > ------=_Part_209004_22453143.1185454770169--