lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Herou <marcus.he...@tailsweep.com>
Subject Re: Abstractify FacetComponent and SimpleFacets
Date Fri, 12 Mar 2010 09:55:53 GMT
Hi, thanks I wondered if it already was incorporated or such.

Yes it is a little related to StatsComponent ( sum, avg etc) but I think
that this solves another problem (correct me if I'm wrong) since it
transforms the resulting field in a functionquery instead of counting as per
default (today). I think that the StatsComponent does something similar but
operates on the resulting facet. I hook in earlier.

I used the StatsComponent as template for another component which I call
CountComponent (
http://svn.tailsweep.com/opensource/solr-contrib/trunk/src/main/java/org/apache/solr/handler/component/CountComponent.java)
which emulates the SQL equiv: "select count(distinct field)". Added the
"patch" to JIRA (https://issues.apache.org/jira/browse/SOLR-1814) That one
works with sharding as well. The problem is that one need to send the damn
entire unique hashset of field across the shards... (can get big). See that
Ted and Erik have commented now... Perhaps I have created something which
already exists... damn

Both these Components probably need to be refined for a release/merge into
Solr.

How do I move onward with these ?






On Fri, Mar 12, 2010 at 2:02 AM, Grant Ingersoll <gsingers@apache.org>wrote:

>
> On Mar 11, 2010, at 6:30 PM, Yonik Seeley wrote:
>
> > Interesting looking stuff Marcus!
> > Seems sort of related to stat.facet (calc stats on unique facet values)
> > http://wiki.apache.org/solr/StatsComponent
>
> And https://issues.apache.org/jira/browse/SOLR-1622
>
> >
> >
> > On Thu, Mar 11, 2010 at 5:49 PM, Marcus Herou
> > <marcus.herou@tailsweep.com> wrote:
> >> I have now implemented Facet with FunctionQueries it is really cool!
> Sorry
> >> but even though the author of SimpleFacets (Yonik) says in the javadoc
> that
> >> one should subclass it to leverage more functionality I did not really
> find
> >> that very true in this case.
> >
> > Hoss was actually the first author of SimpleFacets - SOLR-44 (Solr
> > didn't even have built-in faceting when it came into the incubator!)
> >
> > -Yonik
> > http://www.lucidimagination.com
>
>
>


-- 
Marcus Herou CTO and co-founder Tailsweep AB
+46702561312
marcus.herou@tailsweep.com
http://www.tailsweep.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message