We need to include the new functionality in the JSON interface - composite aggregation - https://manual.manticoresearch.com/dev/Searching/Grouping#GROUP-BY-multiple-fields-at-once