I don't have server 10.7 yet but I wanted a way to aggregate query results server side and should be getting 10.7 in the near future. However, based on the example given, I don't understand how the Query Top Features operation differs from any other standard query that includes order by field and results record count. Maybe it's a bad example because it looks like it only returns a single value from groupByFields.
Using the example given, I would like to assume that there would actually be more than one 'employeeName' returned but like I said, the example is not clear since it just gives a single employeeName but 2 counts as per the topCount. Can someone confirm that given a larger data set you would get something like the extended example below?
<CODE class=""> { <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Jill"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">54</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-76.9505202472378</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">36.02168768903079</SPAN> } }, { <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Jill"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">53</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-80.28022828451529</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">34.9904342763449</SPAN> } },
{ <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Albert"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">4</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-76.9505202472378</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">36.02168768903079</SPAN> } }, { <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Albert"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">3</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-80.28022828451529</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">34.9904342763449</SPAN> } }<CODE class="">{ <SPAN class="">"exceededTransferLimit"</SPAN>: <SPAN class="">false</SPAN>, <SPAN class="">"features"</SPAN>: [ { <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Jason"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">25</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-76.9505202472378</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">36.02168768903079</SPAN> } }, { <SPAN class="">"attributes"</SPAN>: { <SPAN class="">"employeeName"</SPAN>: <SPAN class="">"Jason"</SPAN>, <SPAN class="">"deliveryNumber"</SPAN>: <SPAN class="">24</SPAN> }, <SPAN class="">"geometry"</SPAN>: { <SPAN class="">"x"</SPAN>: <SPAN class="">-80.28022828451529</SPAN>, <SPAN class="">"y"</SPAN>: <SPAN class="">34.9904342763449</SPAN> } },
],<BR />...}