Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 27285 invoked from network); 9 Sep 2002 14:40:33 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Sep 2002 14:40:33 -0000 Received: (qmail 15467 invoked by uid 97); 9 Sep 2002 14:41:03 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 15347 invoked by uid 97); 9 Sep 2002 14:41:00 -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 15284 invoked by uid 98); 9 Sep 2002 14:40:58 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20020909144020.39403.qmail@web12708.mail.yahoo.com> Date: Mon, 9 Sep 2002 07:40:20 -0700 (PDT) From: Otis Gospodnetic Subject: RE: Read-only mode index To: Lucene Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Regarding lock files created while searching, it looks like it is created via FSDirectory.makeLock method, which makes use of the disableLuceneLocks property, so this actually should take care of the searching locks. So this should work on CD-ROMs. It would be lovely if somebody could confirm this and send a message to let us all know. Otis --- J.P.Rosewell@open.ac.uk wrote: > I posted a message that might have been the one you were thinking of: > > >I've been investigating using Lucene to search html pages on CD-ROM, > using > >an applet as the search interface. It isn't as easy as I'd hoped... > > > >One problem is that lock files are written while searching to > prevent > >concurrent updates of the index -- clearly that doesn't work too > well on > >read-only media! But I notice there are current changes which will > make the > >use of lock files configurable. > > > >Another problem is security restrictions on applets. Unfortunately > one of > >these is not being able to read system properties and the new > mechanism for > >turning off lock files uses a system property, so that ain't going > to work > >well in my case... > > > http://nagoya.apache.org/eyebrowse/ReadMsg?listName=lucene-user@jakarta.apac > he.org&msgNo=2260 > > Ie the system property solves the read-only media problem, but not if > you > are writing an applet based solution. The "CD-ROM and search applet" > seems a > natural pairing, so I was hoping there could be an alternative way of > doing > this. > > Jon > > Educational Software, LTS > x52619 > > > > -----Original Message----- > From: Otis Gospodnetic [mailto:otis_gospodnetic@yahoo.com] > Sent: 09 September 2002 02:22 > To: Lucene Users List > Subject: Re: Read-only mode index > > > Yes, that issue has been addressed and taken care of. > This is from CHANGES.txt: > > 3. Added the ability to disable lock creation by using > disableLuceneLocks > system property. This is useful for read-only media, such as > CD-ROMs. > (otis) > > I remember somebody following up on this change and warning of a > downfall of > this solution, and I remember thinking that the comment was valid or > semi-valid, but I can't remember who made the comment, nor what > exactly the > comment was. Maybe this solution needs to be fixed, but for now this > should > work. > > Otis > > > --- Herman Chen wrote: > > Hi, > > > > I recall having seen discussions on the need for accessing index in > > > read-only mode. Has there been a solution suggested or any > > contributions? Thanks. > > > > -- > > Herman > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: