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 Erik Hatcher <li...@ehatchersolutions.com> on 2002/06/01 01:22:05 UTC

Re: Standalone Lucene server

The application we built for our book (Java Development with Ant -
http://www.manning.com/antbook/) uses Lucene to build an index from an Ant
build (think static documentation here) and then was incorporated in a few
different environments:

    - command-line query tool
    - Ant query task
    - webapp - with simple text box query and results display (using Struts)
    - Stateless Session Bean - deployed into JBoss, and EJB client could
query index
    - Web Service - using Tomcat and Axis - can query the index from a web
service client

It was all built as proof-of-concept, so certainly has not been exposed to
any heavy loads but it all worked nicely.

But on a related note, if you've got NT4/IIS/ASP, why not use MS Index
Server. Yeah, I know thats probably curse words in this forum, but use the
tools you have handy.  As a matter of fact, for my day job we ran into just
this very situation where we needed Word documents indexed and POI isn't
really up to the job just yet.  (our requirements are to run WebSphere
behind IIS, so Windows 2000 was already in the picture). So I built a very
simple ASP page that queried Index Server and returned XML.  A few lines of
Java code using Commons Digester and I was in business easily. (if there is
a Java way to query Index Server, I'd love to hear about it!).

    Erik


----- Original Message -----
From: "Christian Ubbesen" <cu...@octacom.net>
To: <lu...@jakarta.apache.org>
Sent: Friday, May 31, 2002 5:00 PM
Subject: Standalone Lucene server


> I'm thinking of using Lucene as a general purpose tool in my toolbox,
> and therefore use it in non-java-only-environments.
>
> For instance, I would like to use the search capabilities in one of my
> clients NT4/IIS/ASP-environments.
>
> Since Lucene is essentially a java-library today, I'm wondering if
> anyone have wrapped it up as standalone search engine with some neat
> interface (keywords: TCP, HTTP, XML-RPC, SOAP, whatever really...)?
>
> Otherwise I suppose it could be an idea to create this sort of
> container.
>
>
> Christian
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


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


Re: Standalone Lucene server

Posted by Erik Hatcher <li...@ehatchersolutions.com>.
Well, I would certainly encourage you to get the book if you're doing
anything at all with Ant.  But the book itself won't really go into Lucene
details.  I've attached two screen shots from the book to this message (will
they be stripped by the mail server?) - the "canoo" extension is because we
did automated functional testing of our web app with Canoo WebTest. You can
see the Lucene logo and a sophisticated Lucene expression being used in one
screenshot, and the results of that search in the other.

The code will be available for download from Manning's site when the book is
published, but its really nothing elaborate.  I've contributed the Ant task
to do indexing to the lucene-dev crew, and when I finally get some breathing
room I'll commit it to the Lucene sandbox CVS repository (but its in the
mail archives at least).

As for the code wrapping it into a web service and EJB - not much to it
really (laughably simple, actually)- as we wrote a very simple wrapper that
did the querying and returned results so that Lucene's API was not even seen
from tools that searched.  That same wrapper was easily reused no matter
what front-end we wanted to put on it.  I can contribute that code to the
sandbox as well, probably.

    Erik


----- Original Message -----
From: "Clemens Marschner" <cm...@lanlab.de>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Saturday, June 01, 2002 3:04 PM
Subject: Re: Standalone Lucene server


> Hm, so I suppose we need to buy the book to see it running... (and get the
> code)? ;-)
>
> Regards,
>
> Clemens
>
> ----- Original Message -----
> From: "Erik Hatcher" <li...@ehatchersolutions.com>
> To: "Lucene Users List" <lu...@jakarta.apache.org>
> Sent: Saturday, June 01, 2002 1:22 AM
> Subject: Re: Standalone Lucene server
>
>
> > The application we built for our book (Java Development with Ant -
> > http://www.manning.com/antbook/) uses Lucene to build an index from an
Ant
> > build (think static documentation here) and then was incorporated in a
few
> > different environments:
> >
> >     - command-line query tool
> >     - Ant query task
> >     - webapp - with simple text box query and results display (using
> Struts)
> >     - Stateless Session Bean - deployed into JBoss, and EJB client could
> > query index
> >     - Web Service - using Tomcat and Axis - can query the index from a
web
> > service client
> >
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>

Re: Standalone Lucene server

Posted by Clemens Marschner <cm...@lanlab.de>.
Hm, so I suppose we need to buy the book to see it running... (and get the
code)? ;-)

Regards,

Clemens

----- Original Message -----
From: "Erik Hatcher" <li...@ehatchersolutions.com>
To: "Lucene Users List" <lu...@jakarta.apache.org>
Sent: Saturday, June 01, 2002 1:22 AM
Subject: Re: Standalone Lucene server


> The application we built for our book (Java Development with Ant -
> http://www.manning.com/antbook/) uses Lucene to build an index from an Ant
> build (think static documentation here) and then was incorporated in a few
> different environments:
>
>     - command-line query tool
>     - Ant query task
>     - webapp - with simple text box query and results display (using
Struts)
>     - Stateless Session Bean - deployed into JBoss, and EJB client could
> query index
>     - Web Service - using Tomcat and Axis - can query the index from a web
> service client
>



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