Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 46252 invoked from network); 5 Dec 2008 13:58:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2008 13:58:00 -0000 Received: (qmail 20874 invoked by uid 500); 5 Dec 2008 13:58:05 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 20844 invoked by uid 500); 5 Dec 2008 13:58:05 -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 20833 invoked by uid 99); 5 Dec 2008 13:58:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 05:58:05 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of erickerickson@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2008 13:56:37 +0000 Received: by nf-out-0910.google.com with SMTP id g16so3976nfd.15 for ; Fri, 05 Dec 2008 05:57:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=T5OoSW7dqWrtIwsP3iiAFt455YgFReVPSrOP1M95b1g=; b=kEbPi1JWd68iUll8JvCkihWiVZwGvvE4SRCayDNxiEVmVUR57gJJCGCUzEGBT9q/eW u9PBIxoNgKi2jbUbYD/GZE0aNndlIh4x7BMPg9kSCeABLhuEJlF2t6DTWb4FrDnRPUv9 cDvuewacxUc95CPWsoQ1yi/B7jV1qQCsoOvNE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=pAkN6G0fhZHP4o12Lsa+Yq03oEaeQZmXuM8O9R0cCSe7D6plrm972Abc8nStMWs0/l baeFFwfSrXtPLEpX9kCk+f2b7O+1iVqb7yL5NuO4v2svU48bG0Ez6h4o5pGQ2ecn5ajl pSA4cAEoCnDPZvhgBNxEEoePXZ/+UG6W8nCng= Received: by 10.86.84.5 with SMTP id h5mr640615fgb.49.1228485444460; Fri, 05 Dec 2008 05:57:24 -0800 (PST) Received: by 10.86.25.19 with HTTP; Fri, 5 Dec 2008 05:57:24 -0800 (PST) Message-ID: <359a92830812050557n33b2e565o8a9ddc7bd5309534@mail.gmail.com> Date: Fri, 5 Dec 2008 08:57:24 -0500 From: "Erick Erickson" To: java-user@lucene.apache.org Subject: Re: Deleting documents from index In-Reply-To: <49392FB9.40406@sql-gmbh.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_43402_14652849.1228485444432" References: <49392FB9.40406@sql-gmbh.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_43402_14652849.1228485444432 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How do you know it's failing? If you're searching could it be that you need to re-open the underlying indexreader when you delete using IndexWriter? Best Erick On Fri, Dec 5, 2008 at 8:42 AM, Gunnar Wurl wrote: > Hi, > > I am trying to delete documents from an index. When using the > IndexReader#deleteDocuments(Term) method this works fine. But when using the > IndexWriter#deleteDocuments(Term) it is not working, although I am using the > same term. When using the IndexWriter I tried to commit and optimize but a > reader opened on the index afterwards still finds the document. Is there > something special when using the IndexWriter#deleteDocuments(Term) method > what I have to care for? > > Thanks in advance > > Gunnar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > ------=_Part_43402_14652849.1228485444432--