Basically, I have a book that has several topics (two in my test) but i just can get one topic if i try to facet.
I have created a test to try to see what is the problem.
It is a little bit complicated to post all this code...i'll try to make a resume.
If i create the query i get the result that i want. In the index this is the text:
So, once i have the result, if i want to facet (with the above post code) for topic i think that i should get the two results...or just one?
This is the code:
public class BookEntity
protected List<TopicBookEntity> topic;
public class TopicBookEntity
private BookEntity book;
private TopicEntity topic;
public class TopicEntity
protected String nameTopic;
Thanks in advance,
Edited: After making some tests i have a conclusion with version 3.4. If an entity has a relation with several entities (1 Book 4 Topics), the faceting process for the entity Topic only gets one. Anybody has the same problem?