Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32131 invoked from network); 20 Feb 2006 11:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Feb 2006 11:42:58 -0000 Received: (qmail 51159 invoked by uid 500); 20 Feb 2006 11:42:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 51136 invoked by uid 500); 20 Feb 2006 11:42:49 -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 51121 invoked by uid 99); 20 Feb 2006 11:42:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 03:42:49 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of finsaccanebbia@gmail.com designates 64.233.182.198 as permitted sender) Received: from [64.233.182.198] (HELO nproxy.gmail.com) (64.233.182.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2006 03:42:48 -0800 Received: by nproxy.gmail.com with SMTP id d4so561048nfe for ; Mon, 20 Feb 2006 03:42:27 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lxOuZd9edVSG6FMpQN+TqQe1Z7J3qYd6ODhEpdnLmt4xhHLzhy8cjDVk1r13jC9SUHO39FAVi2gn5hC9+x0pYEIGOW1H3J/c5JGdBGHXOZHi+MOeLLO0kK0pYapoq+te+lfQDrBR2j/YyALg4ET52g0zZ/jP1Rjr6MTj62GaXjU= Received: by 10.48.203.19 with SMTP id a19mr1199301nfg; Mon, 20 Feb 2006 03:42:27 -0800 (PST) Received: by 10.49.61.20 with HTTP; Mon, 20 Feb 2006 03:42:27 -0800 (PST) Message-ID: Date: Mon, 20 Feb 2006 12:42:27 +0100 From: "Fabio Insaccanebbia" To: java-user@lucene.apache.org Subject: Re: webserverless search with lucene on offline HTML doc In-Reply-To: <5DD2165A95E801438DAA9C1E0957EB5ED3F342@ewiex02.dynamic.ewi.utwente.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5DD2165A95E801438DAA9C1E0957EB5ED3F342@ewiex02.dynamic.ewi.utwente.nl> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Wouldn't this be a good case for the JarDirectory implementation somebody asked for? The index could then be statically written in a jar file downloaded with the applet (the original mail refers to static offline HTML files). It could even be a great idea for improving the Maven site-plugin :-) [I mean: when you create the Maven generated site a Lucene based plugin could index it, create the jar index and then add the "applet" to the Maven pages] On 2/20/06, Trieschnigg, R.B. (Dolf) wrote= : > Hi Paulo, > > The main problem is that Lucene needs to store its index on a disk which = under normal circumstances an applet may not read. The applet operates in a= sandbox, which only allows "safe" operations. Reading and writing to disk = is not allowed. An applet can only get resources from the host it came from= . > As Lucene does not allow an IndexReader to be created for a URL, I guess = it's not possible in a normal applet environment. Or you should dive into t= he IndexReader code an write your own IndexReader for remote indices. > > What you can also do is sign your applet; if a user accepts your applet a= s safe you can run it as any other Java application (download the index fro= m a webserver to a temporary location and query it for example). > But I am usually quite sceptic with accepting signed applets from unkown = distributors; as it is like leaving your door open for complete strangers (= "of course you may delete all my files on disk"). > > Are you going to put your applet on a website, or do you want to distribu= te it on e.g. a cd? If I would buy some software from you on a cd, I would = more likely accept a signed applet than if I would visit some obscure homep= age. > > Regards, > Dolf > > > > > > > -----Original Message----- > > From: paolo berto [mailto:pberto@jupiter-jazz.com] > > Sent: maandag 20 februari 2006 11:44 > > To: java-user@lucene.apache.org > > Subject: webserverless search with lucene on offline HTML doc > > > > Hello, > > > > I would like to figure out if it is possible to write a java > > applet able to search with lucene through an HTML > > documentation WITHOUT having a webserver installed on the > > system and on multiple platforms. > > > > So I have a set of static offline HTML files forming a > > software documentation, would like to index it and search > > through it from a browser without having to install a web > > server and on various platforms (osx/win32/linux) Is that > > possible at all? > > > > Thanks and sorry for the basic question, > > > > paolo > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org