lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Luis Betancourt González <>
Subject Re: Distinct Results from Solr Query
Date Mon, 19 Jan 2015 20:18:05 GMT
I think this sounds like grouping results by field?
You should enable groups by adding &group=true&group.field=YOURFIELD to test this

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" <>
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:
Sent from the Solr - User mailing list archive at

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.

View raw message