mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 06:47:12 +00:00
gcloud: Wed Feb 11 11:28:24 UTC 2026
This commit is contained in:
parent
582f364023
commit
aaff695a08
2667 changed files with 84754 additions and 68242 deletions
93
gcloud/beta/vector-search/collections/data-objects/query
Normal file
93
gcloud/beta/vector-search/collections/data-objects/query
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
NAME
|
||||
gcloud beta vector-search collections data-objects query - query data
|
||||
objects from a Vector Search collection
|
||||
|
||||
SYNOPSIS
|
||||
gcloud beta vector-search collections data-objects query
|
||||
--collection=COLLECTION --location=LOCATION [--json-filter=JSON_FILTER]
|
||||
[--output-data-fields=[DATA_OUTPUT_FIELD,...]
|
||||
--output-metadata-fields=[METADATA_OUTPUT_FIELD,...]
|
||||
--output-vector-fields=[VECTOR_OUTPUT_FIELD,...]]
|
||||
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
|
||||
[--sort-by=[FIELD,...]] [--uri] [GCLOUD_WIDE_FLAG ...]
|
||||
|
||||
DESCRIPTION
|
||||
(BETA) Query data objects from a Vector Search collection.
|
||||
|
||||
EXAMPLES
|
||||
To query data objects from collection my-collection in location us-central1
|
||||
with a filter, run:
|
||||
|
||||
$ gcloud beta vector-search collections data-objects query \
|
||||
--collection=my-collection --location=us-central1 --limit=10 \
|
||||
--json-filter='{"some_field": {"$eq": "some_value"}}'
|
||||
|
||||
REQUIRED FLAGS
|
||||
--collection=COLLECTION
|
||||
The collection to query data objects from.
|
||||
|
||||
--location=LOCATION
|
||||
Location of the collection.
|
||||
|
||||
FLAGS
|
||||
--json-filter=JSON_FILTER
|
||||
A filter expression in JSON format to apply to the query, e.g.
|
||||
'{"genre": {"$eq": "sci-fi"}}'.
|
||||
|
||||
Output fields
|
||||
|
||||
--output-data-fields=[DATA_OUTPUT_FIELD,...]
|
||||
List of data fields to include in the output. Use * to include all data
|
||||
fields.
|
||||
|
||||
--output-metadata-fields=[METADATA_OUTPUT_FIELD,...]
|
||||
List of metadata fields to include in the output. Use * to include all
|
||||
metadata fields.
|
||||
|
||||
--output-vector-fields=[VECTOR_OUTPUT_FIELD,...]
|
||||
List of vector fields to include in the output. Use * to include all
|
||||
vector fields.
|
||||
|
||||
LIST COMMAND FLAGS
|
||||
--filter=EXPRESSION
|
||||
Apply a Boolean filter EXPRESSION to each resource item to be listed.
|
||||
If the expression evaluates True, then that item is listed. For more
|
||||
details and examples of filter expressions, run $ gcloud topic filters.
|
||||
This flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--limit=LIMIT
|
||||
Maximum number of resources to list. The default is unlimited. This
|
||||
flag interacts with other flags that are applied in this order:
|
||||
--flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--page-size=PAGE_SIZE
|
||||
Some services group resource list output into pages. This flag
|
||||
specifies the maximum number of resources per page. The default is
|
||||
determined by the service if it supports paging, otherwise it is
|
||||
unlimited (no paging). Paging may be applied before or after --filter
|
||||
and --limit depending on the service.
|
||||
|
||||
--sort-by=[FIELD,...]
|
||||
Comma-separated list of resource field key names to sort by. The
|
||||
default order is ascending. Prefix a field with ``~'' for descending
|
||||
order on that field. This flag interacts with other flags that are
|
||||
applied in this order: --flatten, --sort-by, --filter, --limit.
|
||||
|
||||
--uri
|
||||
Print a list of resource URIs instead of the default output, and change
|
||||
the command output to a list of URIs. If this flag is used with
|
||||
--format, the formatting is applied on this URI list. To display URIs
|
||||
alongside other keys instead, use the uri() transform.
|
||||
|
||||
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.
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue