add aggregate search API