# Google Cloud Vector Search V1 Client - Class CombineResultsOptions (0.4.0)

0.4.0 (latest) 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vector Search V1 Client class CombineResultsOptions.

Options for combining the results of the batch search operations.

Generated from protobuf message `google.cloud.vectorsearch.v1.BatchSearchDataObjectsRequest.CombineResultsOptions`

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1 \\ BatchSearchDataObjectsRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ranker` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Ranker` Required. The ranker to use for combining the results. |
| `↳ output_fields` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.OutputFields` Optional. Mask specifying which fields to return. |
| `↳ top_k` | `int` Optional. The number of results to return. If not set, a default value will be used. |

### getRanker

Required. The ranker to use for combining the results.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Ranker|null` |   |

### hasRanker

### clearRanker

### setRanker

Required. The ranker to use for combining the results.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.Ranker` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getOutputFields

Optional. Mask specifying which fields to return.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.OutputFields|null` |   |

### hasOutputFields

### clearOutputFields

### setOutputFields

Optional. Mask specifying which fields to return.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.OutputFields` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTopK

Optional. The number of results to return. If not set, a default value
will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setTopK

Optional. The number of results to return. If not set, a default value
will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |