@Indexed
public class UserHS {
@Field(store = Store.YES, analyze = Analyze.NO)
@SortableField
private int id;
@IndexedEmbedded(targetElement = AddressHS.class, indexNullAs = Field.DEFAULT_NULL_TOKEN)
private List<Address> addresses;
}
public class AddressHS {
@Field(store = Store.YES, analyze = Analyze.NO)
private String street;
@Field(store = Store.YES, analyze = Analyze.NO)
private String postCode;
@Field(store = Store.YES, analyze = Analyze.NO)
private int number;
}