Search returns array with aggregate functions