Sorry if it was not clear. Child is connected to Parent in two places, via the child variable, and via the children list. I would like to index all properties of Child from the child variable, but for example only one property of the Child class from the children list. Using my above example one could imagine an IndexEmbedded tag that allows you to explicitly list the properties of the embedded object that you would like to index, ie:
Code:
@Indexed
class Parent {
@IndexedEmbedded(index=("a","b"))
Child child;
@IndexedEmbedded(index=("a"))
List<Child> children;
}
I think the field bridge may work, although I'm not really sure how it behaves for lists of objects. I think being able to explicitly list the properties you would like to index of child classes from the parent from the IndexedEmbedded or similar tag would be a great feature, and save tedious work creating FieldBridges.
Did that make sense?
Thanks!
David