Re: get one document per value in multivalued field

2015-01-12 Thread vit
The field must be single-valued for grouping. That is why I do not consider this option. -- View this message in context: http://lucene.472066.n3.nabble.com/get-one-document-per-value-in-multivalued-field-tp4179056p4179065.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: get one document per value in multivalued field

2015-01-12 Thread Shawn Heisey
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:/