From lucene-user-return-2463-qmlist-jakarta-archive-lucene-user=jakarta.apache.org@jakarta.apache.org Thu Sep 12 09:23:54 2002 Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 20604 invoked from network); 12 Sep 2002 09:23:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Sep 2002 09:23:54 -0000 Received: (qmail 12284 invoked by uid 97); 12 Sep 2002 09:24:37 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 12268 invoked by uid 97); 12 Sep 2002 09:24:36 -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 12214 invoked by uid 98); 12 Sep 2002 09:24:35 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-Sent: 12 Sep 2002 09:23:57 GMT Message-ID: <3D805D2D.8000309@ehatchersolutions.com> Date: Thu, 12 Sep 2002 05:23:57 -0400 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Users List Subject: Re: IndexSearcher on JAR resources? References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Tim Dawson wrote: > I need to do almost exactly the same thing as Erik - create a read-only > index on our "help" webapp that will be packaged inside an ear file. Eventually I'll have a look at implementing this (and of course contributing it back to Lucene's codebase) - its on my to-do list. But if you want to beat me to it, even better! It could be a few months before I actually get to it, since the filesystem works fine for my demonstration environment. > I'll probably end up creating an ant task to do the actual indexing. Save yourself a bit of leg-work - and reuse what I've already done. Its in the Lucene sandbox CVS area already. It could use a little work, but it does work nicely for what I've pushed through it to index text and HTML files. It also has quite speedy dependency checking, so if you index the same files a second time, its much much faster as it just compares dates and ignores them. If you aren't indexing filesystem files then this won't work out of the box for you, but might serve as a starting point. > Has anybody packaged indexes into a jar before? Why is the API so > restrictive as to require an open filesystem? I suspect that leveraging the read-only FSDirectory would work, although I have not looked at the code to see how tough or easy that might be. Erik -- To unsubscribe, e-mail: For additional commands, e-mail: