# Google Cloud Vector Search V1 Client - Class SearchHint (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 SearchHint.

Represents a hint to the search index engine.

Generated from protobuf message `google.cloud.vectorsearch.v1.SearchHint`

## Namespace

Google \\ Cloud \\ VectorSearch \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ knn_hint` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SearchHint.KnnHint` Optional. If set, the search will use the system's default K-Nearest Neighbor (KNN) index engine. |
| `↳ index_hint` | `https://docs.cloud.google.com/php/docs/reference/cloud-vectorsearch/latest/V1.SearchHint.IndexHint` Optional. Specifies that the search should use a particular index. |

### getKnnHint

Optional. If set, the search will use the system's default
K-Nearest Neighbor (KNN) index engine.

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

### hasKnnHint

### setKnnHint

Optional. If set, the search will use the system's default
K-Nearest Neighbor (KNN) index engine.

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

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

### getIndexHint

Optional. Specifies that the search should use a particular index.

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

### hasIndexHint

### setIndexHint

Optional. Specifies that the search should use a particular index.

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

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

### getIndexType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |