Hi
I think you need field collapsing, look here
http://wiki.apache.org/solr/FieldCollapsing
2009/11/24 Tomasz Kępski
> Hi,
>
> I have the following case:
>
> In my index I do have documents categorized (category_id - int sortable
> field). I would like to get three top documents matching user
Hi,
I have the following case:
In my index I do have documents categorized (category_id - int sortable
field). I would like to get three top documents matching user query BUT
each have to be from different category.:
for example from returned set (doc_id : category id):
1:1
2:1
3:1
4:2
5:1