3 Replies Latest reply on Jan 30, 2013 4:04 PM by adamw

    hibernate search + envers? does it work?

    deanhiller

      will hibernate search work with envers in searching through the audit tables as well as the base tables?  We have not tried this but we are using envers and have text that can change but we want it to be searchable as well in the audit tables.

        • 1. Re: hibernate search + envers? does it work?
          adamw

          Hmm, in theory it should be possible, the audit entities are just normal hibernate-managed entities. One problem that I could see is how to tell HSearch which entities should be audited. Normally that's done using annotations, and here you would need some external configuration - I'm not sure if that's possible with HSearch? If not, then there's an integration layer to add - e.g. an @AuditSearchable annotation, which would cause the audit entities to be added to HSearch with the appropriate properties specified as document id etc, just as in the original entity.

           

          Adam

          • 2. Re: hibernate search + envers? does it work?
            andlio

            Hi !  3 years later, I have the same question.

            I would like searching over my hibernate entities and theirs previous versions (created with H. Envers) with Hibernate Search. But I don't know how it is possible... Do you have an idea ?

            • 3. Re: hibernate search + envers? does it work?
              adamw

              I don't know about any developments in this area.

               

              Adam