Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 41695 invoked from network); 6 Oct 2005 15:56:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 15:56:59 -0000 Received: (qmail 66062 invoked by uid 500); 6 Oct 2005 15:56:53 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 66041 invoked by uid 500); 6 Oct 2005 15:56:53 -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 66030 invoked by uid 99); 6 Oct 2005 15:56:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 08:56:53 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.200.39] (HELO web31106.mail.mud.yahoo.com) (68.142.200.39) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 06 Oct 2005 08:56:55 -0700 Received: (qmail 39858 invoked by uid 60001); 6 Oct 2005 15:56:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Tjfhj62hVu6iSPpRGqqMPXplKmCJ8AtT7MULnB6I2OMbCOl+ulsR9BzRNckxofeqOdeEjYzSUDrdBppu30Iks7liqos8MhIlPmYFJ3ODO9w6mqe4n6k4ZzQTuVHvmbPPz2tLrrunXPkpL6YkPiVE60ii3BIJlt+j4HCvJ+lpiio= ; Message-ID: <20051006155629.39856.qmail@web31106.mail.mud.yahoo.com> Received: from [216.194.55.187] by web31106.mail.mud.yahoo.com via HTTP; Thu, 06 Oct 2005 08:56:29 PDT Date: Thu, 6 Oct 2005 08:56:29 -0700 (PDT) From: Otis Gospodnetic Subject: Re: IndexWriter recreating To: java-user@lucene.apache.org In-Reply-To: <191B11CF22BAC54292E97F3B5CDC9C85AC8E0E@tlvmail7.corp.amdocs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Alex, Please wrap this in a unit test (using JUnit) that makes it repeatable. When yo uhave that, please file the bug in JIRA and attach your unit test. Thanks, Otis --- Alex Kiselevski wrote: > > Hi, > > I have a strange exception when I'm trying to recreate an IndexWriter > that was previously defined. > > > > I did the following steps: > > 1. mWriter = new IndexWriter(indexPath, analyzer, true); > 2. mWriter.addDocument(document); > 3. mWriter.optimize(); > 4. mWriter.close(); > > > > In the next step I try to recreate the indexWriter by the same way I > did > it in the first step > > 5. mWriter = new IndexWriter(indexPath, analyzer, true); > > And I got an Exception: > > > > java.io.IOException: Cannot delete _a.cfs > > > > at > org.apache.lucene.store.FSDirectory.create(FSDirectory.java:144) > > > > at > org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:105) > > > > at > org.apache.lucene.store.FSDirectory.getDirectory(FSDirectory.java:83) > > > > at > org.apache.lucene.index.IndexWriter.(IndexWriter.java:173) > > > > at > com.stp.core.cv.index.AbstractIndexer.(AbstractIndexer.java:28) > > > > at > com.stp.core.cv.index.CVIndexer.(CVIndexer.java:27) > > > > at > com.stp.core.CVFacade.indexDocuments(CVFacade.java:102) > > > > at > com.stp.test.STPTestUtility.indexDocuments(STPTestUtility.java:129) > > > > at > com.stp.test.STPStorePanel$IndexThread.run(STPStorePanel.java:649) > > > > > > > > Alex Kiselevski > > Solution Engineer Pre Sales > > +9.729.776.7086 (desk) > +9.729.776.1504 (fax) > > AMDOCS > INTEGRATED CUSTOMER MANAGEMENT > > > > > > > > Alex Kiselevski > > Solution Engineer Pre Sales > > +9.729.776.7086 (desk) > +9.729.776.1504 (fax) > > AMDOCS > INTEGRATED CUSTOMER MANAGEMENT > > > > > > The information contained in this message is proprietary of Amdocs, > protected from disclosure, and may be privileged. > The information is intended to be conveyed only to the designated > recipient(s) > of the message. If the reader of this message is not the intended > recipient, > you are hereby notified that any dissemination, use, distribution or > copying of > this communication is strictly prohibited and may be unlawful. > If you have received this communication in error, please notify us > immediately > by replying to the message and deleting it from your computer. > Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org