The Clustering contrib plugin for Solr provides a generic mechanism for plugging in third party clustering implementations. It currently provides clustering support for search results using the Carrot2 project. See https://lucene.apache.org/solr/guide/result-clustering for how to get started.