Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 70668 invoked from network); 30 Oct 2004 13:08:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Oct 2004 13:08:16 -0000 Received: (qmail 10264 invoked by uid 500); 30 Oct 2004 13:07:48 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 10174 invoked by uid 500); 30 Oct 2004 13:07:47 -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 10158 invoked by uid 99); 30 Oct 2004 13:07:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [195.130.132.57] (HELO apate.telenet-ops.be) (195.130.132.57) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 30 Oct 2004 06:07:46 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by apate.telenet-ops.be (Postfix) with SMTP id 5E0102482D8; Sat, 30 Oct 2004 15:07:44 +0200 (MEST) Received: from pc01 (d51A55317.kabel.telenet.be [81.165.83.23]) by apate.telenet-ops.be (Postfix) with ESMTP id 10DB02482B1; Sat, 30 Oct 2004 15:07:44 +0200 (MEST) Reply-To: From: "Willy De Waele" To: "'Erik Hatcher'" , "- Lucene" Subject: RE: Search.jhtml ? Date: Sat, 30 Oct 2004 15:07:41 +0200 Organization: N/A Message-ID: <000201c4be81$7387e140$1753a551@pc01> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal In-Reply-To: <3BF7264B-29E8-11D9-8E51-000A95BC61B6@ehatchersolutions.com> X-FID: PLAINTXT-NONE-0000-0000-000000000000 X-ImMailer: IncrediMail (3001509) IMItemGuid: {3AF9FFEB-D014-4A55-ADAB-3963573D93CE} X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Indeed, when I follow the procedure it is working fine ... I created an index with following statement: java org.apache.lucene.demo.IndexHTML -create "E:/Java/lucene-1.4.2/docs" default index-dir: index all references absolute Why can't I search an index of files somewhere on the harddisk, in other words why=20 should the 'docs' folder in de webapps/luceneweb folder ? Thnx Willy -----Original Message----- From: Erik Hatcher [mailto:erik@ehatchersolutions.com]=20 Sent: vrijdag 29 oktober 2004 22:22 To: Lucene Users List Subject: Re: Search.jhtml ? On Oct 29, 2004, at 12:12 PM, Willy De Waele wrote: > > First at all, thanks for you answer. > Now I get some results with the jsp's, but the url's in de result is > not clickeable ... > Is this normal? (should I modify the template?) It's a known issue that the Lucene web demo is quite shabby. I created detailed instructions for running it as an appendix to Lucene=20 in Action. I'm pasting the relevant sections below: Running the web application demo The web demo is slightly involved to=20 set up and run properly. You need a web container; our instructions are for Tomcat 5. The=20 docs/demo.html documentation provides detailed instructions for setting=20 up and running the web application, but you can also follow the steps=20 provided here. The index used by the web application differs slightly=20 from that in the command-line demo. First, it restricts itself to=20 indexing only .html, .htm, and .txt files. Each file it processes=20 (including .txt files) is parsed using a custom rudimentary HTML=20 parser. To build the index initially, execute IndexHTML: java -cp lucene-1.4.2.jar;lucene-demos-1.4.2.jar =20 org.apache.lucene.demo.IndexHTML -create -index webindex docs ... adding docs/resources.html adding docs/systemproperties.html adding docs/whoweare.html Optimizing index... 7220 total milliseconds The -index webindex switch sets the location of the index directory. In=20 a moment, you=92ll need the full path to this directory to configure the = web application. The final docs argument to IndexHTML is the directory=20 tree to index. The =96create switch creates an index from scratch. = Remove=20 this switch to update the index with files that have been added or=20 changed since the last time the index was built. Next, deploy=20 luceneweb.war (from the root directory of the extracted distribution)=20 into CATALINA_HOME/webapps. Start Tomcat, wait for the container to=20 complete the startup routine, and then edit=20 CATALINA_HOME/webapps/luceneweb/configuration.jsp using a text editor=20 (Tomcat should have expanded the .war file into a luceneweb directory=20 automatically). Change the value of indexLocation appropriately, as in=20 this example, specifying the absolute path to the index you built with=20 IndexHTML: String indexLocation =3D =20 "/dev/LuceneInAction/install/lucene-1.4.1/webindex"; Now you=92re ready to try the web application. Visit=20 http://localhost:8080/luceneweb in your web browser, and you should see=20 =93Welcome to the Lucene Template application...=94 (you can also change = the header and footer text in configuration.jsp). If all is well with=20 your configuration, searching for Lucene-specific words such as=20 "QueryParser AND Analyzer" should list valid results based on Lucene=92s = documentation. You may try to click on one of the search results links=20 and receive an error. IndexHTML indexes a url field, which in this case=20 is a relative path of docs/.... To make the result links work properly,=20 copy the docs directory from the Lucene distribution to=20 CATALINA_HOME/webapps/luceneweb. Yes, these steps are a bit more=20 manual than they should be. Rest assured that improvements to Lucene=92s = example applications are on our to-do list as soon as we=92re finished=20 writing this book! (sorry about the formatting of the above - it was pasted straight from=20 a PDF) Erik > > TIA & Regards > Willy > > -----Original Message----- > From: Daniel Naber [mailto:daniel.naber@t-online.de] > Sent: donderdag 28 oktober 2004 20:21 > To: Lucene Users List > Subject: Re: Search.jhtml ? > > > On Thursday 28 October 2004 15:01, Willy De Waele wrote: > >> =A0=A0=A0=A0=A0=A0=A0=A0Executing the demos as a bat file (Windows) = is working fine,=20 >> but using lucene as a web 'application' is not working ... > > I think that Search.jhtml is totally outdated, please try src/jsp > instead. > > Regards > Daniel > > -- > http://www.danielnaber.de > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org