Hello, I have some problem to update my index.
I have two classes, Customer and Person, and I would like to search Customer using Hibernate search. Here is a simple schema representing my classes:
Customer
Code:
class Customer {
String accountNumber;
Person person;
}
Person
Code:
class Person {
String lastName;
String firstName;
...
}
I use @IndexedEmbedded on the person property to access Person information in the Customer index. I just want to index Customer with Person information embedded, and not creating another index with Person information.
The problem is that I'd like to update the Customer index when a Person is updated.
Is it possible ?
Thanks in advance for responses.