Reference documentation and code samples for the Cloud Firestore Admin V1 API module Google::Cloud::Firestore::Admin::V1::Index::Density.
The density configuration for the index.
Constants
DENSITY_UNSPECIFIED
value: 0 Unspecified. It will use database default setting. This value is input
only.
SPARSE_ALL
value: 1 In order for an index entry to be added, the document must
contain all fields specified in the index.
This is the only allowed value for indexes having ApiScope ANY_API and
DATASTORE_MODE_API.
SPARSE_ANY
value: 2 In order for an index entry to be added, the document must
contain at least one of the fields specified in the index.
Non-existent fields are treated as having a NULL value when generating
index entries.
DENSE
value: 3 An index entry will be added regardless of whether the
document contains any of the fields specified in the index.
Non-existent fields are treated as having a NULL value when generating
index entries.
[[["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-05-02 UTC."],[],[]]