If you annotate a OneToMany relation with @ContainedIn, a change to the containing entity doesn't lead to a reindexing of the referencing entities.
public class Forum{
@Field
boolean hidden;
@OneToMany
@ContainedIn
List<Post> posts;
}
public class Post{
@ManyToOne
@IndexedEmbedded(includePaths={"hidden"})
Forum forum;
}
This issue has been around forever. I thought I reported it before but I couldn't find a reference, so I'm reporting it here. |