Re: webserverless search with lucene on offline HTML doc
The signed applet is surely a simpler and more elegant solution.. In some projects however this could not be a viable option: the System properties problem you have pointed out (and I had missed :-) is hopefully going to be solved in 1.9 (http://issues.apache.org/jira/browse/LUCENE-369) Fabio P.S.: is there any possibilty to have a look at your quick and dirty implementation of the JarDirectory? I've written a JarReadOnlyDirectory but it was very dirty and not even so quick for me to write :-( I wrote a quick and dirty implementation of a JarDirectory - it works, but a new problem is encountered soon after: The indexWriter requires information from the System properties; an applet is allowed to read only a limited set of Properties. Especially with an offline applet I would stick to the solution of signing the applet. Dolf. On 2/21/06, Trieschnigg, R.B. (Dolf) [EMAIL PROTECTED] wrote: 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). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webserverless search with lucene on offline HTML doc
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 the 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 as safe you can run it as any other Java application (download the index from 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 distribute 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 homepage. Regards, Dolf -Original Message- From: paolo berto [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webserverless search with lucene on offline HTML doc
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) [EMAIL PROTECTED] 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 the 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 as safe you can run it as any other Java application (download the index from 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 distribute 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 homepage. Regards, Dolf -Original Message- From: paolo berto [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: webserverless search with lucene on offline HTML doc
On Feb 20, 2006, at 12:42 PM, Fabio Insaccanebbia wrote: 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] I have no idea what was asked since I just registered to this mailing list, but what I would like to end up is my HTML folder with our software documentation, then a search.jar file which contains all my index and then, with a simple java applet be able to query such file and provide results always in the applet page. paolo On 2/20/06, Trieschnigg, R.B. (Dolf) [EMAIL PROTECTED] 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 the 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 as safe you can run it as any other Java application (download the index from 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 distribute 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 homepage. Regards, Dolf -Original Message- From: paolo berto [mailto:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]