setParam('max_docs_per_value', $max); } /** * Instruct Elasticsearch to use direct field data or ordinals/hashes of the field values to execute this aggregation. * The execution hint will be ignored if it is not applicable. * * @return $this */ public function setExecutionHint(string $hint): self { return $this->setParam('execution_hint', $hint); } }