PDA

View Full Version : Lucene Spring integration


ssozonoff
Feb 15th, 2006, 12:02 PM
Hello,

Is there anyone who already has some experience with the lucene spring module?

I am trying to get my head around all the classes and I have a few questions.

Basically there is a DefaultDirectoryIndexer which uses an IndexWriter.

If I understand correctly in this context the Template classes are not used or required.
However there is a ConcurrentLuceneIndexTemplate which offers some nice features.

So to leverage the ConcurrentLuceneIndexTemplate do I basically need to write my own implementation of DirectoryIndexer?

To be honest I am having a hard time understanding how many of these classes piece together and which ones offer similar functionality..

Thanks for any clarifications.

Serge

Costin Leau
Feb 16th, 2006, 05:23 AM
The current lucene support contains a nice reference documentation but you'll have to generate that by hand as there is no official release that includes it. You can find the source (an xml) inside /docs/reference/src.
There is a readme.txt file in /docs/reference folder tha texplains what jars are needed, where to get them and what ant targets you can use to generate it.

ssozonoff
Feb 16th, 2006, 05:30 AM
Great thanks!

Thats what I was looking for.

Serge

ssozonoff
Feb 16th, 2006, 06:17 AM
Right!

So after some reading and looking at the lucene Spring code some more it seems that I can mix and match the use of the Template classes with for example the DefaultDirectoryIndexer as long as they use an IndexFactory implementation which takes care of the locking semantics.

At the end of the day all the classes rely on the IndexFactory to get their IndexReader's and IndexWriter's....

Serge