mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-14 08:55:34 +00:00
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
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-collection in location
|
|
us-central1 in project my-project with aggregation method COUNT, 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_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 command is currently in beta and might change without notice. This
|
|
variant is also available:
|
|
|
|
$ gcloud vector-search collections data-objects aggregate
|
|
|