[
https://issues.apache.org/jira/browse/SOLR-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843574#action_12843574
]
Erik Hatcher commented on SOLR-1814:
------------------------------------
I'm a bit confused here, but maybe don't quite understand what you've
implemented. Doesn't faceting give you the counts you're after here? I'm
assuming "blogs" in your example is a value of a "type" field or something like
that. Faceting on the type field would give you that count, or doing a
facet.query=type:blogs would give you just that count (for any arbitrary query).
> 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.4, 1.5, 1.6, 2.0
> Reporter: Marcus Herou
> Fix For: 1.4, 1.5, 1.6, 2.0
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.