lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: sorting based on pivot aggregations
Date Tue, 18 Jan 2011 15:42:01 GMT
> So if my pivot term is:"student_id,test_grade" 
> I'd want to be able to sort on the number of tests a
> student has taken. and also get an average. something like:
>  :sort => sum( student_id,test_grade )/ count(
> student_id,test_grade )
> 
> where the values would be summed and counted over all of
> the entries where student_id was the same.
> 
> It doesn't seem to be working now, but does seem like a
> feature people would like. Is there any plan to implement
> it? Or even better a patch that I could apply?

http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function could help?



      

Mime
View raw message