Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 54290 invoked from network); 30 Oct 2009 06:28:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 06:28:33 -0000 Received: (qmail 52985 invoked by uid 500); 30 Oct 2009 06:28:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 52897 invoked by uid 500); 30 Oct 2009 06:28:30 -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 52887 invoked by uid 99); 30 Oct 2009 06:28:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 06:28:30 +0000 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 (nike.apache.org: local policy) Received: from [203.104.17.159] (HELO web94807.mail.in2.yahoo.com) (203.104.17.159) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Oct 2009 06:28:21 +0000 Received: (qmail 51608 invoked by uid 60001); 30 Oct 2009 06:27:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1256884078; bh=RROeHICOl3H188wCRRoLSQon7NAve6C2tEXOhYIBn3M=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=HcWuleztJynET5qi6tAUHDGdBsEp7Q7lZppqti7/L6lqHraZb2g5HcIe09uAHim9rk519/1xLgwxL4u47g4vs0dAgd2aRx0AcG+C4sGGSxSz+N/xZY64QGc8jlkN6EFdHuWUnP8NQdKxrFr/QSMEjx9MSrwgcEEUW/e0NLaDNdE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=18ZC4vNFg+cq3YehHGX5GeuNcqJG1iR7Fj9znY+qutxE6mGn8OuuizG+jB8/mBvBg/WkQTQJeE5bBWRMRxLOrk/T35PdYb1DSNv0ldlUeTN9iyVd83tS4T0s19jwF5KByIqatT8ZqFCuEvrvPf1lkWOE175sJhQXkODfVQhnyk4=; Message-ID: <902479.51158.qm@web94807.mail.in2.yahoo.com> X-YMail-OSG: U.RaeTUVM1mcxTlq2VK4dyd4KsS76UCaWcADfO7T2Dqj47wCbwWtqjPk18SdDCL1G280t1yNC..cYKXrtJSxGwf4UyK21_H0OT1HtKZgM4KzQPFZceKtBrez1fn0iZFVOgolYyCKBUjptky1bFb9RQi15JhPwZJMnkH8M5.E70i5P8MNmDvXRpWQif2JrMukRFtVQg_lGrjVlUInzLxFBy7dK_2naP8MTXJejqWKORDs3Ko6_g-- Received: from [59.90.244.83] by web94807.mail.in2.yahoo.com via HTTP; Fri, 30 Oct 2009 11:57:58 IST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.7.361.4 Date: Fri, 30 Oct 2009 11:57:58 +0530 (IST) From: DHIVYA M Subject: soln found for overwritten problem To: java-user@lucene.apache.org In-Reply-To: <867513fe0910292323h1d9e1381qc22e8161083be15d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-303210507-1256884078=:51158" X-Virus-Checked: Checked by ClamAV on apache.org --0-303210507-1256884078=:51158 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Let me try out and get back to you sir =A0 Thanks M.Dhivya --- On Fri, 30/10/09, Anshum wrote: From: Anshum Subject: Re: What is multiple indexing and how does it work in Lucene [Java= ] To: java-user@lucene.apache.org Date: Friday, 30 October, 2009, 6:23 AM In case you are trying to say that in subsequent runs, the previous state o= f the index just goes off, its because the indexwriter gets opened with 'create new' flag as true. In other words, the index would be newly created overwriting any existing index at the directory location. The solution to this would be to open the indexwriter with the createnew flag as false. *public IndexWriter(String path,* *=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0Analyzer a,* *=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0boolean create)* *=A0 =A0 =A0 =A0 =A0 =A0 throws IOException* This should solve your problem. -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw............ On Fri, Oct 30, 2009 at 11:43 AM, DHIVYA M wrot= e: > The question is indeed wrong. Sry for the inconvenience. Actually i shoul= d > have asked this way! > > Am trying out executing the demo of lucene 1.4.3. > When i run a file for the first time, the index is properly getting > created. > When i run the indexing for the second time with a different file, the fi= le > "_1" , a CFS file in the index folder is getting overwritten, i.e. i coul= dnt > find the index created for the previous file i used. > > So kindly let me know about the cause of this problem and a solution too. > > I would also be happy if anyone let me know from which version the index > will be appended. > > Thanks in advance. > M.Dhivya > > >=A0 =A0 =A0 From cricket scores to your friends. Try the Yahoo! India Home= page! > http://in.yahoo.com/trynew =0A=0A=0A From cricket scores to your friends. Try the Yahoo! India Ho= mepage! http://in.yahoo.com/trynew --0-303210507-1256884078=:51158--