1 | <?php |
||
10 | class DiversifiedSampler extends AbstractSimpleAggregation |
||
11 | { |
||
12 | use Traits\ShardSizeTrait; |
||
13 | |||
14 | /** |
||
15 | * Set the maximum number of documents to be returned per value. |
||
16 | * |
||
17 | * @return $this |
||
18 | */ |
||
19 | public function setMaxDocsPerValue(int $max): self |
||
23 | |||
24 | /** |
||
25 | * Instruct Elasticsearch to use direct field data or ordinals/hashes of the field values to execute this aggregation. |
||
26 | * The execution hint will be ignored if it is not applicable. |
||
27 | * |
||
28 | * @return $this |
||
29 | */ |
||
30 | public function setExecutionHint(string $hint): self |
||
34 | } |
||
35 |