Hello,
I'm trying to restrict the fields indexed in a relation, it should be easy reading the doc.
Here's the model:
Code:
@Indexed
public class Client {
@IndexedEmbedded
private ProfessionnelGC professionnelGC;
}
Code:
@Indexed
public class ProfessionnelGC implements Serializable {
@IndexedEmbedded(includePaths = { "raisonSociale" })
private Groupe groupe;
}
Code:
@Indexed
public class Groupe {
@Field
private String numeroContrat;
@Field
private String sapId;
@Field
private String raisonSociale;
}
I'd like to index only the "raisonSociale" field when indexing the parent (Client/ProfessionnelGC) entity, if i understood i should only have to give the name of the field (without prefix) in the includePaths annotation value, but it doesn't work.
If i don't use includePaths every sub field will be indexed, but as soon as i use includePaths nothing from the Groupe entity is indexed.
I tried every includePaths syntax (with or without part/full prefix etc), playing with prefix annotation value, no result.
If anybody can help, thanks a lot!