You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Brian Cuttler <br...@wadsworth.org> on 2002/10/28 19:19:42 UTC

Implement Lucene web-demo using Tomcat

Tomcat and Lucene users,

Hello, I am trying to implement the lucene search web demo
run under Tomcat 4.1.10, Lucene 1.2, Apache 1.3.27 on a
Solaris 8 system.

I've been able to build the lucene index (I need to modify
the code to exclude *.txt, we only want to index the .htm
and .html files).

I'm able to search the index with the command like Java code.

I'm able to access the search web page that is placed into
the Tomcat webapps directory.

However when I run the webapp from the tomcat server (port 8080)
I get document url's of host:8080/index-results, which are 
incorrect because the indexed pages are really under host/index-results,
it, not part of that server.

We believe that we've installed mod_webapp.so correctly and that
the Apache server is talking to the Tomcat Server but I don't
know how to complete the task properly.

We need to query a search web page on the primary server and 
use mod_webapp.so to pass context to get proper results ? or
we need to modify the output to produce correct server information
in the output URLs ?

						thanks in advance,

						Brian

---
   Brian R Cuttler                 brian.cuttler@wadsworth.org
   Computer Systems Support        (v) 518 486-1697
   Wadsworth Center                (f) 518 473-6384
   NYS Department of Health        Help Desk 518 473-0773



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Implement Lucene web-demo using Tomcat

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Sounds like Tomcat/Apache config issue, which is always a pain.
Get the basic servlet working, and when you figure that out your Lucene
stuff should work, too.
Make sure that the user that runs Tomcat can read the index files.

Otis


--- Brian Cuttler <br...@wadsworth.org> wrote:
> Tomcat and Lucene users,
> 
> Hello, I am trying to implement the lucene search web demo
> run under Tomcat 4.1.10, Lucene 1.2, Apache 1.3.27 on a
> Solaris 8 system.
> 
> I've been able to build the lucene index (I need to modify
> the code to exclude *.txt, we only want to index the .htm
> and .html files).
> 
> I'm able to search the index with the command like Java code.
> 
> I'm able to access the search web page that is placed into
> the Tomcat webapps directory.
> 
> However when I run the webapp from the tomcat server (port 8080)
> I get document url's of host:8080/index-results, which are 
> incorrect because the indexed pages are really under
> host/index-results,
> it, not part of that server.
> 
> We believe that we've installed mod_webapp.so correctly and that
> the Apache server is talking to the Tomcat Server but I don't
> know how to complete the task properly.
> 
> We need to query a search web page on the primary server and 
> use mod_webapp.so to pass context to get proper results ? or
> we need to modify the output to produce correct server information
> in the output URLs ?
> 
> 						thanks in advance,
> 
> 						Brian
> 
> ---
>    Brian R Cuttler                 brian.cuttler@wadsworth.org
>    Computer Systems Support        (v) 518 486-1697
>    Wadsworth Center                (f) 518 473-6384
>    NYS Department of Health        Help Desk 518 473-0773
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>