Nice! Are the aggregations also going to be pluggable? Reading the ticket, i would assume it is going to be pluggable.
Thanks, Markus -----Original message----- > From:Yonik Seeley <ysee...@gmail.com> > Sent: Tuesday 9th February 2016 15:25 > To: solr-user@lucene.apache.org > Subject: Re: Custom JSON facet functions > > On Tue, Feb 9, 2016 at 7:10 AM, Markus Jelsma > <markus.jel...@openindex.io> wrote: > > Hi - i must have missing something but is it possible to declare custom > > JSON facet functions in solrconfig.xml? Just like we would do with request > > handlers or search components? > > Yes, but it will probably change: > https://issues.apache.org/jira/browse/SOLR-7447 > > So currently, you would register a facet function just like a custom > function (value source), > but just put "_agg" at the end of the name and implement AggValueSource. > So for example, the "sum" facet function is registered as "sum_agg" > and implements AggValueSource (the class is SumAgg) > > So if you utilize this, just realize that the mechanism and interfaces > are experimental and subject to change (and probably will change at > some point for this in particular). > > -Yonik >