On 1/12/2015 3:09 PM, vit wrote:
I use Solr4.21 my multivalued filed is like that: q=(category_id:(484986 520623 484339 519258 516227 486757) ......How to construct a query which will show one top document per category_id value?
This is a feature called grouping, or field collapsing. https://wiki.apache.org/solr/FieldCollapsing https://cwiki.apache.org/confluence/display/solr/Result+Grouping Thanks, Shawn