HS 3.0.0, Hibernate 3.2.5.
I have this in class Item (@Entity @Indexed):
@ManyToMany(fetch=FetchType.LAZY)
@JoinTable(..)
@IndexedEmbedded
private Set<ItemAttribute> itemAttributes = new HashSet<ItemAttribute>();
And in ItemAttribute (@Entity @Indexed):
@ContainedIn
@ManyToMany(mappedBy = "itemAttributes", fetch=FetchType.LAZY)
private Set<Item> items = new HashSet<Item>();
But after (re)indexing Item and ItemAttribute in Item's document there is only one "itemAttributes.id" field (there are many such entries in this collection).
I do this like Emmanuel shows here:
http://forum.hibernate.org/viewtopic.php?p=2355390&sid=6935eab714288da2ce912541e691eeac
but it's not working (anymore?).