-->
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.  [ 1 post ] 
Author Message
 Post subject: Hbn Search: want to use @ContainedIn in non-indexed entity
PostPosted: Fri Dec 07, 2007 8:50 pm 
Newbie

Joined: Tue Dec 05, 2006 3:23 pm
Posts: 4
Hibernate Search 3.0.0.GA

I'm indexing an entity that contains a map of other entities. I'm using @IndexedEmbedded to index the other entities as part of the top-level entity. However, I do not want to index the other entities otherwise. (They hold extra attribute values that the user can add to the top-level entity. They have no use independent of that entity. Plus, there'll be a lot of them and I don't want to index them twice.)

This works fine when I create the top-level entity with its associated other entities. However, if I update one of the other entities, the index is not updated. I tried adding @ContainedIn to the other entities (properly speaking, to the property that references the top-level entity), but that works only if they're also marked @Indexed, which I don't want.

Is there any way I can mark something @Indexed without actually indexing it? Any other suggestions? Thanks in advance.


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

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.