Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 52731 invoked from network); 30 Dec 2004 16:36:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Dec 2004 16:36:15 -0000 Received: (qmail 16769 invoked by uid 500); 30 Dec 2004 16:36:09 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 16739 invoked by uid 500); 30 Dec 2004 16:36:09 -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 16724 invoked by uid 99); 30 Dec 2004 16:36:08 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,HTML_20_30,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web42001.mail.yahoo.com (HELO web42001.mail.yahoo.com) (66.218.93.169) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 30 Dec 2004 08:36:05 -0800 Received: (qmail 30005 invoked by uid 60001); 30 Dec 2004 16:36:04 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=eSQmkEuosR2vehwtdmabEiZra4iK2znHraExdIk+1hYSSZJIPyoeaB7dJwIXtO2oWW2CyCj3JPobyRqIFMOemaTEV4zcru8OV1OfKiP9GHGlrhCiWu9o61vXrPSua4tw7sFDuShvEwPYy7AExg9URTBxBstwM98rrbd3vuiitfM= ; Message-ID: <20041230163604.30003.qmail@web42001.mail.yahoo.com> Received: from [219.64.131.250] by web42001.mail.yahoo.com via HTTP; Thu, 30 Dec 2004 08:36:04 PST Date: Thu, 30 Dec 2004 08:36:04 -0800 (PST) From: mahaveer jain Subject: Re: Deleting index for DB indexing To: Lucene Users List , Paul In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-336554919-1104424564=:28524" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-336554919-1104424564=:28524 Content-Type: text/plain; charset=us-ascii I am indexing more that 5 tables. And each for them have autoincrement and that is the primary key. So if I do find DocNum, it may so happen that it may delete document I don't want to delete. Paul wrote: Alternative: create a hashed value which is unique within your DB (e.g. use md5). Afterwards you can delete documents from the index with the IndexReader(Term). Without that additional field you can use the IndexSearcher to retrieve your documents from the index and then use IndexReader(DocNum) to delete these documents Paul On Thu, 30 Dec 2004 07:18:39 -0800 (PST), mahaveer jain wrote: > Hi All, > > I am using lucene for my DB indexing. I have 2 columns which are Keyword. > Now I want to delete my index based on this 2 keyword. > > Is it possible ? If no. What is other alternative ? > > Thanks > Mahaveer > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail - 250MB free storage. Do more. Manage less. > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------- Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. --0-336554919-1104424564=:28524--