1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-14 00:46:53 +00:00
gcloud-help/gcloud/vector-search/collections/data-objects/aggregate
2026-03-26 12:11:21 +00:00

52 lines
1.7 KiB
Text

NAME
gcloud vector-search collections data-objects aggregate - aggregate data
objects
SYNOPSIS
gcloud vector-search collections data-objects aggregate
--aggregation-method=AGGREGATION_METHOD --collection=COLLECTION
--location=LOCATION [--json-filter=JSON_FILTER] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Aggregate data objects.
EXAMPLES
To aggregate data objects from collection my-collection in location
us-central1 in project my-project with aggregation method COUNT, run:
$ gcloud 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_METHOD must
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 help for details.
NOTES
This variant is also available:
$ gcloud beta vector-search collections data-objects aggregate