I suggest to create a component, put it after QueryComponent. in prepare it
should add own PostFilter into list of request filters, your post filter
will be able to inject own DelegatingCollector, then you can just add
collected histogram into result named list
 http://searchhub.org/dev/2012/02/10/advanced-filter-caching-in-solr/

On Tue, Sep 25, 2012 at 10:03 PM, Amit Nithian <anith...@gmail.com> wrote:

> We have a federated search product that issues multiple parallel
> queries to solr cores and fetches the results and blends them. The
> approach we were investigating was taking the scores, normalizing them
> based on some distribution (normal distribution seems reasonable) and
> use that "z score" as the way to blend the results (else you'll be
> blending scores on different scales). To accomplish this, I was
> looking to get the distribution of the scores for the query as an
> analog to the "stats component" but seem to see the only way to
> accomplish this would be to create a custom collector that would
> accumulate and store this information (mean, std-dev etc) since the
> stats component only operates on indexed fields.
>
> Is there an easy way to tell Solr to use a custom collector without
> having to modify the SolrIndexSearcher class? Maybe is there an
> alternative way to get this information?
>
> Thanks
> Amit
>



-- 
Sincerely yours
Mikhail Khludnev
Tech Lead
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to