Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Lucene Spring integration Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lucene Spring integration


    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.


  • #2
    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.


    • #3
      Great thanks!

      Thats what I was looking for.



      • #4

        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....