Is it possible to get clustering in Solr querying via SolrNet?
using built-in algos. like Carrot2 etc.? Can anyone share some sample code or tips to proceed?
Is it possible to get clustering in Solr querying via SolrNet? using built-in algos.
Share
No, Solr clustering is not currently implemented in SolrNet. It doesn’t seem to be hard to implement though. Here’s an outline of what it would take:
ClusteringResult). For example, StatsResult models the response for the StatsComponent.ClusteringResultinISolrQueryResults<T>andSolrQueryResults<T>ISolrResponseParser<T>to parse the part of Solr XML response with the clustering information and load aClusteringResultobject. See other response parsers for reference.ClusteringParameters). This would include a property to mirror carrot.algorithm, another for carrot.url, etc.ClusteringParametersinQueryOptions.ClusteringParametersto querystring parameters inSolrQueryExecuter.And of course, unit tests for everything. Ideally, also an integration test.
Then send me a pull request 😉