I think this sounds like grouping results by field? You should enable groups by adding &group=true&group.field=YOURFIELD to test this feature.
For each unique value of the field specified in group.field, Solr returns a docList with the *top scoring document*. In the docList you can see the total number of matches in that group. Hope it helps, ----- Original Message ----- From: "vit" <bulgako...@yahoo.com> To: solr-user@lucene.apache.org Sent: Monday, January 19, 2015 1:56:43 PM Subject: Re: Distinct Results from Solr Query In other words I need to pick only one document per the field value. Say I have a filed cat_id. For each value of this filed returned I need to return only 1 document and I do not care which one. -- View this message in context: http://lucene.472066.n3.nabble.com/Distinct-Results-from-Solr-Query-tp4180471p4180483.html Sent from the Solr - User mailing list archive at Nabble.com. --------------------------------------------------- XII Aniversario de la creación de la Universidad de las Ciencias Informáticas. 12 años de historia junto a Fidel. 12 de diciembre de 2014.