0

I installed Solr from CDH which version is 4.10.3-cdh5.13.0. My job like one sql work like,How to realize by Solr4:

select D,E,sum(A),sum(B) from DOC where C='balabala' group by D , E;

I try this one,but only one column in group section.

&stats=on
&stats.field=A
&stats.field=B
&stats.facet=D

In Solr5,code below works,but in Solr4 failed:

facet=true&stats=true&stats.field={!tag=piv1}A&facet.pivot={!stats=piv1}D,E

Is there one approach ? and one more question: how to realize

select D,E,sum(A*B) from DOC where C='balabala' group by D , E;
Fire
  • 93
  • 9

0 Answers0