Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

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.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Lucene Spring integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lucene Spring integration

    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

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

    Comment


    • #3
      Great thanks!

      Thats what I was looking for.

      Serge

      Comment


      • #4
        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

        Comment

        Working...
        X