Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 61992 invoked from network); 29 Jun 2006 20:26:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 20:26:30 -0000 Received: (qmail 91593 invoked by uid 500); 29 Jun 2006 20:26:25 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 91559 invoked by uid 500); 29 Jun 2006 20:26:24 -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 91548 invoked by uid 99); 29 Jun 2006 20:26:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 13:26:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.111.4.27] (HELO out3.smtp.messagingengine.com) (66.111.4.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 13:26:23 -0700 Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 4BF7FD8AD4B for ; Thu, 29 Jun 2006 16:26:01 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by frontend3.internal (MEProxy); Thu, 29 Jun 2006 16:26:02 -0400 X-Sasl-enc: 3yrke9JYI3JLhO7DY4r2d3+tvBL6m5GXr9d/qhPpiM4C 1151612761 Received: from [10.17.4.3] (pool-72-70-33-84.bstnma.fios.verizon.net [72.70.33.84]) by mail.messagingengine.com (Postfix) with ESMTP id 73260CE25 for ; Thu, 29 Jun 2006 16:26:01 -0400 (EDT) Message-ID: <44A43757.1070200@mikemccandless.com> Date: Thu, 29 Jun 2006 16:25:59 -0400 From: Michael McCandless User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: Lock File References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > When I create an index withe the class IndexModifier in Lucene 1.9.1there is a lock file created on a temp folder. > My question is: Is it possible to disable this option? > If yes how to procede? Yes, there is. You can call the static FSDirectory.setDisabledLocks() to disable locking entirely. But you need to be certain this is safe for your application. Lucene uses this lock to ensure the index does not become corrupt when IndexReaders and IndexWriters are working on the same index. Or, if you want to change which directory the lock file is stored in you can set this Java property: org.apache.lucene.lockDir Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org