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 Mag Gam <ma...@gmail.com> on 2006/08/23 04:24:42 UTC
Tomcat Simple Example
Hi All,
Does anyone have a simple Tomcat search/result example? I have 4 text files,
i would like to index.
Thanks
Re: Tomcat Simple Example
Posted by Hasan Diwan <ha...@gmail.com>.
On 22/08/06, Mag Gam <ma...@gmail.com> wrote:
> Does anyone have a simple Tomcat search/result example? I have 4 text files,
> i would like to index.
There's a demonstration war file included with lucene.
--
Cheers,
Hasan Diwan <ha...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Robert Koberg <ro...@koberg.com>.
Erik Hatcher wrote:
>
> On Aug 24, 2006, at 3:29 AM, Michael Wechner wrote:
>> As an alternative I would rather suggest that one generates a
>> well-defined XML with JSP or a servlet and then applies
>> an XSLT. If somebody is afraid of performance issues then one might
>> want to consider generating the servlet or jsp code
>> dynamically out of the XSLT ...
>
> You must be one of those Cocoon (*wink*) folks that use the XSLT hammer
> for every problem ;)
Awww... come on now... everybody who prescribes XSL for (almost) every
problem is not a cocooner! :)
-Rob
>
> Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Michael Wechner <mi...@wyona.com>.
Erik Hatcher wrote:
>
> On Aug 24, 2006, at 3:29 AM, Michael Wechner wrote:
>
>> As an alternative I would rather suggest that one generates a well-
>> defined XML with JSP or a servlet and then applies
>> an XSLT. If somebody is afraid of performance issues then one might
>> want to consider generating the servlet or jsp code
>> dynamically out of the XSLT ...
>
>
> You must be one of those Cocoon (*wink*) folks that use the XSLT
> hammer for every problem ;)
I wouldn't say every problem, but I would consider this appropriate ;-)
Michi
>
> Erik
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Aug 24, 2006, at 3:29 AM, Michael Wechner wrote:
> As an alternative I would rather suggest that one generates a well-
> defined XML with JSP or a servlet and then applies
> an XSLT. If somebody is afraid of performance issues then one might
> want to consider generating the servlet or jsp code
> dynamically out of the XSLT ...
You must be one of those Cocoon (*wink*) folks that use the XSLT
hammer for every problem ;)
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Michael Wechner <mi...@wyona.com>.
Mag Gam wrote:
> Thanks!
>
> So, when working with Tomcat, for a simple Index + Search, it is
> recommend
> to use JSP over servlets?
>
> any advice?
well, the issue seems to me rather that the (X)HTML is hardcoded into
the JSP resp. Servlet which creates
a maintenance nightmare when one wants to customize the layout and at
the same time upgrade from time to time.
As an alternative I would rather suggest that one generates a
well-defined XML with JSP or a servlet and then applies
an XSLT. If somebody is afraid of performance issues then one might want
to consider generating the servlet or jsp code
dynamically out of the XSLT ...
cheers
Michi
>
>
>
> On 8/23/06, Chris Hostetter <ho...@fucit.org> wrote:
>
>>
>>
>> : > Does anyone have a simple Tomcat search/result example?
>>
>> : > I have 4 text files,
>> : > i would like to index.
>>
>> take a look at the geting started guide, and the demo WAR that comes
>> with
>> the Lucene distribution...
>>
>> http://lucene.apache.org/java/docs/gettingstarted.html
>>
>>
>>
>> -Hoss
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Mag Gam <ma...@gmail.com>.
Thanks for the response Erik! You make a good point. I have the 'Lucene in
Action' book, and it has some good ways of doing things...its at work now (I
am away for 3 weeks), thats the only bad thing :-(
On 8/23/06, Erik Hatcher <er...@ehatchersolutions.com> wrote:
>
>
> On Aug 23, 2006, at 5:18 PM, Mag Gam wrote:
> > So, when working with Tomcat, for a simple Index + Search, it is
> > recommend
> > to use JSP over servlets?
> >
> > any advice?
>
> No such recommendation would ever officially come from the Lucene
> community. Lucene is entirely independent of how search results get
> rendered. The demo application is nothing more than a demonstration,
> not a recommendation of technologies to use around Lucene.
>
> Whatever technologies best fit your environment is what I'd
> recommend :) I've used all types of technologies on top of Lucene,
> from a servlet, to JSP pages, Struts, Tapestry (what lucenebook.com
> uses) to now using Ruby on Rails backed by Solr (which fronts Lucene
> with servlets).
>
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: Tomcat Simple Example
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Aug 23, 2006, at 5:18 PM, Mag Gam wrote:
> So, when working with Tomcat, for a simple Index + Search, it is
> recommend
> to use JSP over servlets?
>
> any advice?
No such recommendation would ever officially come from the Lucene
community. Lucene is entirely independent of how search results get
rendered. The demo application is nothing more than a demonstration,
not a recommendation of technologies to use around Lucene.
Whatever technologies best fit your environment is what I'd
recommend :) I've used all types of technologies on top of Lucene,
from a servlet, to JSP pages, Struts, Tapestry (what lucenebook.com
uses) to now using Ruby on Rails backed by Solr (which fronts Lucene
with servlets).
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Mag Gam <ma...@gmail.com>.
Thanks!
So, when working with Tomcat, for a simple Index + Search, it is recommend
to use JSP over servlets?
any advice?
On 8/23/06, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> : > Does anyone have a simple Tomcat search/result example?
>
> : > I have 4 text files,
> : > i would like to index.
>
> take a look at the geting started guide, and the demo WAR that comes with
> the Lucene distribution...
>
> http://lucene.apache.org/java/docs/gettingstarted.html
>
>
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
Re: Tomcat Simple Example
Posted by Chris Hostetter <ho...@fucit.org>.
: > Does anyone have a simple Tomcat search/result example?
: > I have 4 text files,
: > i would like to index.
take a look at the geting started guide, and the demo WAR that comes with
the Lucene distribution...
http://lucene.apache.org/java/docs/gettingstarted.html
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Tomcat Simple Example
Posted by Michael Wechner <mi...@wyona.com>.
Mag Gam wrote:
> Hi All,
>
> Does anyone have a simple Tomcat search/result example?
you mean like the war file of Nutch?
Michi
> I have 4 text files,
> i would like to index.
>
> Thanks
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
michael.wechner@wyona.com michi@apache.org
+41 44 272 91 61
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org