-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Using Hibernate Search with Hibernate Envers
PostPosted: Wed Jan 16, 2013 10:31 am 
Newbie

Joined: Tue Jul 19, 2011 2:16 pm
Posts: 19
Hi,

I actually work on Java/J2ee project. I have to develop a fulltext seach and a versionning functionnalities.
I use Hibernate Search for the fulltext search, and Hibernate Envers for the versionning.

All is working fine, but I have a new need : when I search with hibernate, I want to search over my indexed entities and theirs previous versions.
Is it possible ? If yes, how is it possible ?

Lionel


Top
 Profile  
 
 Post subject: Re: Using Hibernate Search with Hibernate Envers
PostPosted: Wed Jan 16, 2013 1:36 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
No, we never implemented versioned indexes so it's not very simple.

Still you could contribute the feature: Lucene indexes are generational so since we already associated a set of index updates to a single transaction, you would need just to:
- make sure older index generations are not cleaned up automatically
- somwhere track which Envers transactions version has to match to each index generation
- make sure the queries are run on the specific index generation rather than the standard index

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Using Hibernate Search with Hibernate Envers
PostPosted: Thu Jan 17, 2013 10:50 am 
Newbie

Joined: Tue Jul 19, 2011 2:16 pm
Posts: 19
Thank you for your answer Sanne.

But I don't understand the differents steps... Is it possible to do that by extending Envers classes in my project ? Or do I need to modify the Envers framework ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.