Indexes with a collection query scope specified allow queries
against a collection that is the child of a specific document, specified
at query time, and that has the collection id specified by the index.
CollectionGroup
Indexes with a collection group query scope specified allow queries
against all collections that has the collection id specified by the
index.
CollectionRecursive
Include all the collections's ancestor in the index. Only available for
Datastore Mode databases.
Unspecified
The query scope is unspecified. Not a valid option.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version of the `Google.Cloud.Firestore.Admin.V1` API is 3.12.0, and this page provides access to documentation for versions ranging from 2.2.0 to 3.12.0."],["The `Index.Types.QueryScope` enum is used within the Firestore Admin v1 API to define the scope at which a query is executed, and is specified within the `from` field of a `StructuredQuery`."],["There are four possible fields within the `Index.Types.QueryScope` enum: `Collection`, `CollectionGroup`, `CollectionRecursive`, and `Unspecified`, each with its own implications for query execution."],["The `Collection` field allows queries against a collection that is the child of a specific document, while the `CollectionGroup` field allows queries against all collections with a specific ID."],["The field `CollectionRecursive` is used to include all of the collections' ancestors within the index, but is only available for Datastore Mode databases."]]],[]]