gcloud beta vector-search data-objects search adds dense ScaNN parameters
Introduced 2026-02-24 · score 0.96
HOW TO USE IT
For dense vector search using an index, pass the ScaNN tuning flags to `gcloud beta vector-search collections data-objects search`. Supply either flag or both; do not combine them with `--dense-scann-target-recall`.
gcloud beta vector-search collections data-objects search --collection=<collection> --location=<location> --vector-search-field=<vector-field> --vector-from-file=<vector.json> --use-index=<index> --dense-scann-search-leaves-pct=<percentage> --dense-scann-initial-candidate-count=<candidate-count>WHY THIS HELPS
Search Vector Search data objects using dense ScaNN parameters.
REQUIREMENTS AND LIMITATIONS
- Availability: beta
- --collection (required): Collection to search data objects from.
- --location (required): Location of the collection.
- --vector-search-field (required): Vector field to search; required for vector search.
- --vector-from-file (required): Path to a JSON file containing the dense or sparse query vector; required for vector search.
- --use-index (required): Index resource name or ID; required when specifying Dense ScaNN tuning flags.
- --dense-scann-search-leaves-pct: Percentage of leaves to search for dense ScaNN, in the range [0, 100]. Can be used with `--dense-scann-initial-candidate-count`; cannot be combined with `--dense-scann-target-recall`.
- --dense-scann-initial-candidate-count: Number of initial candidates for dense ScaNN. Can be used with `--dense-scann-search-leaves-pct`; cannot be combined with `--dense-scann-target-recall`.
- --dense-scann-target-recall: Query-time target recall for dense ScaNN, a value in [0, 1]; mutually exclusive with either low-level Dense ScaNN override.
FIRST-PARTY EVIDENCE
- https://docs.cloud.google.com/sdk/docs/release-notes#55800_2026-02-24
- https://docs.cloud.google.com/sdk/gcloud/reference/beta/vector-search/collections/data-objects/search
Check the installed version and the source before using it. Entry JSON