Represents a hint to the search index engine.
| JSON representation |
|---|
{ // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "knnHint": { object ( |
| Fields | |
|---|---|
| The type of index to use. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
knnHint |
Optional. If set, the search will use the system's default K-Nearest Neighbor (KNN) index engine. |
indexHint |
Optional. Specifies that the search should use a particular index. |
| End of mutually exclusive fields. | |
KnnHint
This type has no fields.
KnnHint will be used if search should be explicitly done on system's default K-Nearest Neighbor (KNN) index engine.
IndexHint
Message to specify the index to use for the search.
| JSON representation |
|---|
{
"name": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"denseScannParams": {
object ( |
| Fields | |
|---|---|
name |
Required. The resource name of the index to use for the search. The index must be in the same project, location, and collection. Format: |
| The parameters for the index. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
denseScannParams |
Optional. Dense ScaNN parameters. |
| End of mutually exclusive fields. | |
DenseScannParams
Parameters for dense ScaNN.
| JSON representation |
|---|
{ "targetRecall": number } |
| Fields | |
|---|---|
targetRecall |
Optional. The target recall for the search. Must be a double in the range [0, 1]. While the search aims to achieve this level of recall, it is not guaranteed. |