Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 3765 invoked from network); 10 Nov 2009 09:22:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 09:22:33 -0000 Received: (qmail 52940 invoked by uid 500); 10 Nov 2009 09:22:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 52850 invoked by uid 500); 10 Nov 2009 09:22:31 -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 52837 invoked by uid 99); 10 Nov 2009 09:22:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 09:22:31 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 09:22:28 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1N7mvQ-0000Ei-Eq for java-user@lucene.apache.org; Tue, 10 Nov 2009 01:22:08 -0800 Message-ID: <26280473.post@talk.nabble.com> Date: Tue, 10 Nov 2009 01:22:08 -0800 (PST) From: "m.harig" To: java-user@lucene.apache.org Subject: Re: remove duplicate when merging indexes In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: m.harig@gmail.com References: <26280244.post@talk.nabble.com> Thanks simon How I do get the unique ID ? will it be added to the index? Simon Willnauer wrote: >=20 > You need some kind of unique ID for you documents like a primary key in a > RDB. > If you have something like that you can call > IndexWriter#updateDocument(uniqueIDTerm, document) this will delete > the old document and add the new one. >=20 > simon >=20 > On Tue, Nov 10, 2009 at 10:05 AM, m.harig wrote: >> >> hello all, >> >> =C2=A0 This is my situation , =C2=A0i've multiple indexes , for example = , index1 , >> index2 , index3 ... i've to update the indexes every night . If i open m= y >> IndexWriter create=3Dfalse (since i want to update the existing index) , >> =C2=A0am >> getting duplicate documents appends with the existing indexes , anyone >> help >> how do i remove duplicate documents by updating the existing index?????? >> -- >> View this message in context: >> http://old.nabble.com/remove-duplicate-when-merging-indexes-tp26280244p2= 6280244.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/remove-duplicate-when-m= erging-indexes-tp26280244p26280473.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org