lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Herou (JIRA)" <>
Subject [jira] Commented: (SOLR-1814) select count(distinct fieldname) in SOLR
Date Fri, 12 Mar 2010 09:55:27 GMT


Marcus Herou commented on SOLR-1814:

Instead of having the file attached...

The facet counts is something else, it groups the counts based on the field supplied does
it not? Perhaps facet.query (like you pointed out) can be used, I overlooked that. Never got
an answer on the mailinglist so I implemented it instead :)

What I jave accomplished is this:

select count(distinct blog) from BlogEntries where ...somexpression...

One doc is in in this case a BlogEntry and each belongs to Blog (many-to-one). If this already
can be accomplished in SOLR, my bad. Please tell me how.

Trove have two licenses GPL and ASL. I can use the ASL version if it helps. I only use Trove
due to the efficiency, plain hashmaps can be used of course if it is a showstopper.

> select count(distinct fieldname) in SOLR
> ----------------------------------------
>                 Key: SOLR-1814
>                 URL:
>             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:
> 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.

View raw message