Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 41552 invoked from network); 2 Feb 2005 06:19:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Feb 2005 06:19:34 -0000 Received: (qmail 17437 invoked by uid 500); 2 Feb 2005 06:19:21 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 17397 invoked by uid 500); 2 Feb 2005 06:19:21 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 17382 invoked by uid 99); 2 Feb 2005 06:19:21 -0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=SPF_HELO_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from keyserver.Rescomp.Berkeley.EDU (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 01 Feb 2005 22:19:19 -0800 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 52F4F5B7C9; Tue, 1 Feb 2005 22:19:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 4FC787F45C for ; Tue, 1 Feb 2005 22:19:18 -0800 (PST) Date: Tue, 1 Feb 2005 22:19:18 -0800 (PST) From: Chris Hostetter Sender: hossman@hal.rescomp.berkeley.edu To: Lucene Users List Subject: Re: How do I delete? In-Reply-To: <41FFEBF8.1040004@sgi.com> Message-ID: References: <41FFEBF8.1040004@sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N : anywhere. I checked the count coming back from the delete operation and : it is zero. I even tried to delete another unique term with similar : results. First off, are you absolutely certain you are closing the reader? it's not in the code you listed. Second, I'd bet $1 that when your documents were indexed, your "reference" field was analyzed and parsed into multiple terms. Did you try searching for the Term you're trying to delete by? (I hear "luke" is a pretty handy tool for checking exactly which Terms are in your index) : >>Here is the delete and associated code: : >> : >> reader = IndexReader.open(database); : >> : >> Term t = new Term("reference",reference); : >> try { : >> reader.delete(t); : >> } catch (Exception e) { : >> System.out.println("Delete exception;"+e); : >> } -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org