- NAME
-
- gcloud beta vector-search collections data-objects aggregate - aggregate data objects
- SYNOPSIS
-
-
gcloud beta vector-search collections data-objects aggregate--aggregation-method=AGGREGATION_METHOD--collection=COLLECTION--location=LOCATION[--json-filter=JSON_FILTER] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)Aggregate data objects. - EXAMPLES
-
To aggregate data objects from collection
my-collectionin locationus-central1in projectmy-projectwith aggregation methodCOUNT, run:gcloud beta vector-search collections data-objects aggregate --collection=my-collection --location=us-central1 --aggregation-method=count --project=my-project - REQUIRED FLAGS
-
--aggregation-method=AGGREGATION_METHOD-
The aggregation method to apply to the query.
AGGREGATION_METHODmust be (only one value is supported):count- Count the number of data objects that match the filter.
--collection=COLLECTION- The collection to aggregate data objects from.
--location=LOCATION- Location of the collection.
- OPTIONAL FLAGS
-
--json-filter=JSON_FILTER- A filter expression in JSON format to apply to the aggregate, e.g. '{"genre": {"$eq": "sci-fi"}}'.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice.
gcloud beta vector-search collections data-objects aggregate
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-10 UTC.