Hi,
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:
-idBook 1
-topic.idTopic 1
-topic.idTopic 2
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:
Code:
public class BookEntity
{
......
@IndexedEmbedded
protected List<TopicBookEntity> topic;
.......
}
public class TopicBookEntity
{
.....
@ContainedIn
private BookEntity book;
@IndexedEmbedded
private TopicEntity topic;
....
}
@Indexed
public class TopicEntity
{
......
@Field
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?