Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 11898 invoked from network); 15 May 2003 13:46:13 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 15 May 2003 13:46:13 -0000 Received: (qmail 29295 invoked by uid 97); 15 May 2003 13:48:20 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@nagoya.betaversion.org Received: (qmail 29288 invoked from network); 15 May 2003 13:48:20 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 15 May 2003 13:48:20 -0000 Received: (qmail 11323 invoked by uid 500); 15 May 2003 13:46:05 -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 11269 invoked from network); 15 May 2003 13:46:05 -0000 Received: from mail.ideorlando.org (208.63.70.76) by daedalus.apache.org with SMTP; 15 May 2003 13:46:05 -0000 Received: by mail.ideorlando.org (Postfix, from userid 8) id 7F927367D4; Thu, 15 May 2003 13:41:50 +0000 (UTC) X-Scanned-By: AMaViS Received: from ROUTARDBW (unknown [208.62.52.106]) by mail.ideorlando.org (Postfix) with SMTP id 74A4E367D4 for ; Thu, 15 May 2003 13:41:48 +0000 (UTC) From: "Rob Outar" To: "Lucene Users List" Subject: RE: deleting a document with a term Date: Thu, 15 May 2003 09:45:46 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20030515134005.97484.qmail@web14608.mail.yahoo.com> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Could it be a case issue? Try converting to lowercase, when you query the analyzer takes care of that for you. Thanks, Rob -----Original Message----- From: D-Fuse [mailto:mr_dfuse@yahoo.com] Sent: Thursday, May 15, 2003 9:40 AM To: lucene-user@jakarta.apache.org Subject: deleting a document with a term Hey, I succesfully made an index of the content of a database, the document is constructed as following: Document doc = new Document(); doc.add(Field.Text("VOORNAAM", voornaam)); doc.add(Field.Text("FAMILIENAAM", familienaam)); doc.add(Field.UnIndexed("ID", Integer.toString(id))); doc.add(Field.UnStored("FREETEXT", strfreetext)); indexWriter.addDocument(doc); Searching goes good, but when I try to delete a document as following: Term term = new Term("ID", Integer.toString(id)); int numberDeleted = indexReader.delete(term); the document is never deleted, numberDeleted is always zero. I checked the ID and it exists. I also tried deleting the document by using the Field VOORNAAM since that is indexed, but that gives the same problem. Am I doing something wrong? --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org