1 | <?php |
||
10 | class DiversifiedSampler extends AbstractSimpleAggregation |
||
11 | { |
||
12 | /** |
||
13 | * Set the number of top-scoring documents to be returned from each shard. |
||
14 | * |
||
15 | * @return $this |
||
16 | */ |
||
17 | public function setShardSize(int $shardSize): self |
||
21 | |||
22 | /** |
||
23 | * Set the maximum number of documents to be returned per value. |
||
24 | * |
||
25 | * @return $this |
||
26 | */ |
||
27 | public function setMaxDocsPerValue(int $max): self |
||
31 | |||
32 | /** |
||
33 | * Instruct Elasticsearch to use direct field data or ordinals/hashes of the field values to execute this aggregation. |
||
34 | * The execution hint will be ignored if it is not applicable. |
||
35 | * |
||
36 | * @return $this |
||
37 | */ |
||
38 | public function setExecutionHint(string $hint): self |
||
42 | } |
||
43 |