-->
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.  [ 2 posts ] 
Author Message
 Post subject: Issue with auto-reindexing and Class Bridge
PostPosted: Thu Sep 15, 2011 10:44 am 
Newbie

Joined: Thu Sep 15, 2011 10:35 am
Posts: 1
Greetings,

I have a class Foo with a class bridge that generate a value depending on embedded entities (let's call them Bar).

The problem is that if I update a Bar, Foo isn't reindexed (because hibernate search don't know there is a computed value depending on it in Foo).

I've tried to use the @ContainedIn annotation without success :-(

In fact @ContainedIn work, but only update Bar specific fields and don't trigger update on ClassBridge on the container (Foo).

Is there a solution other than triggering manually the indexing process ? (like defining ClassBridge dependencies on other field).

Thanks a lot,

Alois Cochard


Top
 Profile  
 
 Post subject: Re: Issue with auto-reindexing and Class Bridge
PostPosted: Fri Sep 16, 2011 8:05 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

I think I know what you saying, but it would be great if you could provide some example code with annotations. Especially where and how do you try to use @indexedEmbedded and how does your class bridge look like?

--Hardy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.