[
https://issues.apache.org/jira/browse/SOLR-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar resolved SOLR-1814.
-----------------------------------------
Resolution: Duplicate
I think this can be done by StatsComponent in Solr 4.7 and beyond.
> select count(distinct fieldname) in SOLR
> ----------------------------------------
>
> Key: SOLR-1814
> URL: https://issues.apache.org/jira/browse/SOLR-1814
> Project: Solr
> Issue Type: New Feature
> Components: SearchComponents - other
> Affects Versions: 1.5
> Reporter: Marcus Herou
> Fix For: 4.7
>
> Attachments: CountComponent.java
>
>
> I have seen questions on the mailinglist about having the functionality for
> counting distinct on a field. We at Tailsweep as well want to that in for
> example our blogsearch.
> Example:
> "You had 1345 hits on 244 blogs"
> The 244 part is not possible in SOLR today (correct me if I am wrong). So
> I've written a component which does this. Attaching it.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]