[
https://issues.apache.org/jira/browse/SOLR-1814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844437#action_12844437
]
Marcus Herou edited comment on SOLR-1814 at 3/12/10 9:55 AM:
-------------------------------------------------------------
Instead of having the file attached...
http://svn.tailsweep.com/opensource/solr-contrib/trunk/src/main/java/org/apache/solr/handler/component/
Erik:
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 have 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.
Ted:
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.
was (Author: marcusherou):
Instead of having the file attached...
http://svn.tailsweep.com/opensource/solr-contrib/trunk/src/main/java/org/apache/solr/handler/component/
Erik:
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.
Ted:
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: 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.