Quote:
Associated objects as well as embedded objects can be indexed as part of the root entity index. This is useful if you expect to search a given entity based on properties of associated objects.
...
you need to mark the other side of the bidirectional relationship with @ContainedIn.
but in theory Hibernate Search could update without the need to have bidirectional relationships. Isn't possible to use metadata/orm informations to find associated entities?
In Example 4.4 of Hibernate Search docs (
http://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#search-mapping-associated): If "Address" entity gets updated, HS could 'know' that there are "Places" wich also need a update, because they are annotated with IndexedEmbedded.
It would make things a lot easier. Currently we need to to make bidirectional relationships only because HS need them. In some circumstances its also not practical (even not possible) to make bidirectional relationships.
Sorry for asking theoretically things... I really like HS and don't want to dis. And I'm also pretty new in this and I'm just wondering myself...
Thanks for feedback.