Resource: Index
Message describing Index object
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "labels": { string: string, ... }, "createTime": string, "updateTime": string, "distanceMetric": enum ( |
| Fields | |
|---|---|
name |
Identifier. name of resource |
displayName |
Optional. User-specified display name of the index |
description |
Optional. User-specified description of the index |
labels |
Optional. Labels as key value pairs. An object containing a list of |
createTime |
Output only. [Output only] Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. [Output only] Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
distanceMetric |
Optional. Distance metric used for indexing. If not specified, will default to DOT_PRODUCT. |
indexField |
Required. The collection schema field to index. |
filterFields[] |
Optional. The fields to push into the index to enable fast ANN inline filtering. |
storeFields[] |
Optional. The fields to push into the index to enable inline data retrieval. |
Union field infra_type. The infrastructure type of the index. infra_type can be only one of the following: |
|
dedicatedInfrastructure |
Optional. Dedicated infrastructure for the index. |
Union field index_type. The type of the index. index_type can be only one of the following: |
|
denseScann |
Optional. Dense ScaNN index. |
DedicatedInfrastructure
Represents dedicated infrastructure for the index.
| JSON representation |
|---|
{ "autoscalingSpec": { object ( |
| Fields | |
|---|---|
autoscalingSpec |
Optional. Autoscaling specification. |
mode |
Optional. Mode of the dedicated infrastructure. |
Mode
Mode of the dedicated infrastructure.
| Enums | |
|---|---|
MODE_UNSPECIFIED |
Default will use PERFORMANCE_OPTIMIZED. |
STORAGE_OPTIMIZED |
This is storage optimized variation. |
PERFORMANCE_OPTIMIZED |
This is Performance optimized on E2 or equivalent family. |
AutoscalingSpec
Specification for autoscaling.
| JSON representation |
|---|
{ "minReplicaCount": integer, "maxReplicaCount": integer } |
| Fields | |
|---|---|
minReplicaCount |
Optional. The minimum number of replicas. If not set or set to |
maxReplicaCount |
Optional. The maximum number of replicas. Must be >= |
DenseScannIndex
Dense ScaNN index configuration.
| JSON representation |
|---|
{
"featureNormType": enum ( |
| Fields | |
|---|---|
featureNormType |
Optional. Feature norm type. |
FeatureNormType
Feature norm type for ScaNN index.
| Enums | |
|---|---|
FEATURE_NORM_TYPE_UNSPECIFIED |
Unspecified feature norm type. |
NONE |
No norm applied. |
UNIT_L2_NORM |
Unit L2 norm. |
DistanceMetric
Distance metric for vector search.
| Enums | |
|---|---|
DISTANCE_METRIC_UNSPECIFIED |
Default value, distance metric is not specified. |
DOT_PRODUCT |
Dot product distance metric. |
COSINE_DISTANCE |
Cosine distance metric. |
Methods |
|
|---|---|
|
Creates a new Index in a given project and location. |
|
Deletes a single Index. |
|
Gets details of a single Index. |
|
Lists Indexes in a given project and location. |
|
Updates the parameters of a single Index. |