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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eGoogle.Cloud.Firestore.Admin.V1.Index.Types.QueryScope\u003c/code\u003e is 3.12.0, with previous versions ranging down to 2.2.0, all accessible via provided links.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eIndex.Types.QueryScope\u003c/code\u003e is an enum in the Firestore Admin v1 API that defines the scope at which a query is run, specifically within a StructuredQuery's \u003ccode\u003efrom\u003c/code\u003e field.\u003c/p\u003e\n"],["\u003cp\u003eThe enum \u003ccode\u003eIndex.Types.QueryScope\u003c/code\u003e has four fields: \u003ccode\u003eCollection\u003c/code\u003e, \u003ccode\u003eCollectionGroup\u003c/code\u003e, \u003ccode\u003eCollectionRecursive\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each defining a different level of query scope within Firestore databases.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCollection\u003c/code\u003e query scope allows queries against a child collection of a specific document, \u003ccode\u003eCollectionGroup\u003c/code\u003e allows queries across all collections with a specific ID, \u003ccode\u003eCollectionRecursive\u003c/code\u003e includes all the collections ancestors in the index, and \u003ccode\u003eUnspecified\u003c/code\u003e is not a valid option.\u003c/p\u003e\n"]]],[],null,[]]