lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Luis Betancourt González <jlbetanco...@uci.cu>
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
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" <bulgakov_v@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.


Mime
View raw message