Results 1 to 4 of 4

Thread: Lucene Spring integration

  1. #1

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3

    Default

    Great thanks!

    Thats what I was looking for.

    Serge

  4. #4

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •