Let's assume the following domain model
@Indexed
class User {
...
public boolean deleted;
@IndexedEmbedded
public Set<Address> addresses;
}
class Address {
...
public boolean deleted;
}
If User.deleted = false and user.getAddresses().iterator().next().deleted=true
it is currently not possible to index the User and ignore some of the nested addresses based on the address object state.
This would require a new interceptor method (maybe on EntityIndexingInterceptor) that would be called from within DocumentBuilderIndexedEntity when we are about to traverse associations and containers (collections etc).
|