Re: Abstractify FacetComponent and SimpleFacets

2010-03-12 Thread Marcus Herou
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).

Abstractify FacetComponent and SimpleFacets

2010-03-11 Thread Marcus Herou
I would like to utilize all code that has been written around Facets and just to hook in somewhere SimpleFacets.getFacetDateCounts calls rangeCount i.e. I would like to group on date but return something else than a count in this case the sum of another field than the actual faceted field but I

Re: Abstractify FacetComponent and SimpleFacets

2010-03-11 Thread Marcus Herou
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. Too much code that not could be

Re: Abstractify FacetComponent and SimpleFacets

2010-03-11 Thread Yonik Seeley
Interesting looking stuff Marcus! Seems sort of related to stat.facet (calc stats on unique facet values) http://wiki.apache.org/solr/StatsComponent On Thu, Mar 11, 2010 at 5:49 PM, Marcus Herou marcus.he...@tailsweep.com wrote: I have now implemented Facet with FunctionQueries it is really

Re: Abstractify FacetComponent and SimpleFacets

2010-03-11 Thread Grant Ingersoll
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,