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 integration with JCR and Hibernate3 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Lucene integration with JCR and Hibernate3

    I have the need to index uploaded documents placed in my (Spring Module)JCR as well as domain object stored in my database ; accessed via a Hibernate3 SessionFactory. I am curious about the Lucene configuration for this type of arrangement. The samples packed in the Spring Module 0.8 release show how to use and index the file system or how to index a database (with a JDBC datasource). I am curious if you can combine the file system index and the database index. And finally, without yet writing the test code, is it possible to use a hibernate session factory to index the database?

    Thanks in advance for your help.

  • #2
    There aren't any tools to combine these two things out of the box AFAIK. The lucene indexing that you mentioned is actually handled by Jackrabbit internally - you don't have a lot of control over it and it's not specified in the JCR spec. If you move to a different implementation, the indexing is likely to be different.
    I would suggest to tackle this problem through Lucene - the common dominator in this case.
    Since in the end you end up with an index, you can try to cumulate it with your normal HB index.
    Basically, you'll end up sharing your index between two Lucene indexes which should be a common use case (and thus with various references available to in on the internet).