mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 14:56:05 +00:00
gcloud: Wed Aug 21 09:39:51 UTC 2024
This commit is contained in:
parent
d35819d273
commit
ed5fe34b64
163 changed files with 3541 additions and 717 deletions
|
|
@ -5,7 +5,7 @@ NAME
|
|||
SYNOPSIS
|
||||
gcloud beta firestore indexes composite create
|
||||
--field-config=[array-config=ARRAY-CONFIG],
|
||||
[field-path=FIELD-PATH],[order=ORDER]
|
||||
[field-path=FIELD-PATH],[order=ORDER],[vector-config=VECTOR-CONFIG]
|
||||
(--collection-group=COLLECTION_GROUP : --database=DATABASE)
|
||||
[--api-scope=API_SCOPE; default="any-api"] [--async]
|
||||
[--query-scope=QUERY_SCOPE; default="collection"]
|
||||
|
|
@ -30,31 +30,43 @@ EXAMPLES
|
|||
--field-config=field-path=timestamp,order=descending
|
||||
|
||||
REQUIRED FLAGS
|
||||
--field-config=[array-config=ARRAY-CONFIG],[field-path=FIELD-PATH],[order=ORDER]
|
||||
Configuration for a field.
|
||||
--field-config=[array-config=ARRAY-CONFIG],[field-path=FIELD-PATH],[order=ORDER],[vector-config=VECTOR-CONFIG]
|
||||
Required, Configuration for an index field.
|
||||
|
||||
This flag must be repeated to provide the ordered list of field
|
||||
configurations comprising the composite index. For example:
|
||||
|
||||
$ gcloud beta firestore indexes composite create \
|
||||
--collection-group=Events \
|
||||
--field-config field-path=tags,array-config=contains \
|
||||
--field-config field-path=user_id,order=descending \
|
||||
--field-config field-path=timestamp,order=descending
|
||||
|
||||
The following keys are allowed:
|
||||
array-config
|
||||
Specifies the configuration for an array field. The only valid
|
||||
option is 'contains'. Exactly one of 'order', 'array-config', or
|
||||
'vector-config' must be specified.
|
||||
|
||||
field-path
|
||||
Specifies the field path (e.g. 'address.city'). This is required.
|
||||
|
||||
order
|
||||
Specifies the order. Valid options are: 'ascending', 'descending'.
|
||||
Exactly one of order or array-config must be specified.
|
||||
Specifies the order. Valid options are 'ascending', 'descending'.
|
||||
Exactly one of 'order', 'array-config', or 'vector-config' must be
|
||||
specified.
|
||||
|
||||
array-config
|
||||
Specifies the configuration for an array field. The only valid
|
||||
option is 'contains'. Exactly one of 'order' or 'array-config' must
|
||||
be specified.
|
||||
vector-config
|
||||
Specifies the configuration for a vector field. Exactly one of
|
||||
'order', 'array-config', or 'vector-config' must be specified.
|
||||
|
||||
dimension
|
||||
Sets dimension value.
|
||||
|
||||
flat
|
||||
Sets flat value.
|
||||
|
||||
Shorthand Example:
|
||||
|
||||
--field-config='array-config=string,field-path=string,order=string,vector-config={"dimension": int, "flat": {"string"}}' --field-config='array-config=string,field-path=string,order=string,vector-config={"dimension": int, "flat": {"string"}}'
|
||||
|
||||
JSON Example:
|
||||
|
||||
--field-config='[{"array-config": "string", "field-path": "string", "order": "string", "vector-config": {"dimension": int, "flat": {"string"}}}]'
|
||||
|
||||
File Example:
|
||||
|
||||
--field-config=path_to_file.(yaml|json)
|
||||
|
||||
Collection group resource - Collection group of the index. The arguments
|
||||
in this group can be used to specify the attributes of this resource.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue