We must look into the use of te @ContainedIn annotation of hibernate search. Maybe it’s possible to solely use this annotation on java properties to trigger reindexation of the entity/entities represented by that java property.

Probably a new webdsl property annotation is needed for derived properties, because it can not be determined automatically. For normal reference properties, we might do this automatically: we might generate java properties for the other side of the relation, which is not modelled in webdsl code, solely for the purpose indexing (thus we should inform hibernate that it doesn’t load this property in any case except for indexing).

Submitted by Elmer van Chastelet on 4 October 2012 at 14:44

On 4 October 2012 at 14:57 chris melman commented:

does the annotation only trigger searchpart of hibernate? or is it a general anotation?

On 4 October 2012 at 14:59 Elmer van Chastelet commented:

edit: ContainedIn anno

Log in to post comments