setParam('order', [$order => $direction]); } /** * Sets a list of bucket sort orders. * * @param array $orders a list of [|"_count"|"_term" => ] definitions * * @return $this */ public function setOrders(array $orders) { return $this->setParam('order', $orders); } }