Take a look at https://issues.apache.org/jira/browse/SOLR-236 Field
Collapsing.
-Sean
Head wrote:
I would like to be able to tell SOLR to dedup the results based on a certain
set of fields. For example, I like to return only one instance of the set
of documents that have the same 'name' and 'address'. But I would still
like to keep all instances around in case someone wants to retrieve one of
the duplicate instances by ID.
Is there some way to do something like this... maybe with a custom
Comparator??? Has anyone attempted to do this?