Skip to content

Commit 3bf5604

Browse files
committed
update included path index values
1 parent fe84ba4 commit 3bf5604

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/cosmos-db/index-policy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Azure Cosmos DB supports two indexing modes:
3131
> [!NOTE]
3232
> Azure Cosmos DB also supports a Lazy indexing mode. Lazy indexing performs updates to the index at a much lower priority level when the engine is not doing any other work. This can result in **inconsistent or incomplete** query results. If you plan to query an Azure Cosmos DB container, you should not select lazy indexing. New containers cannot select lazy indexing. You can request an exemption by contacting [email protected] (except if you are using an Azure Cosmos DB account in [serverless](serverless.md) mode which doesn't support lazy indexing).
3333
34-
By default, indexing policy is set to `automatic`. It's achieved by setting the `automatic` property in the indexing policy to `true`. Setting this property to `true` allows Azure Cosmos DB to automatically index documents as they're written.
34+
By default, indexing policy is set to `automatic`. It's achieved by setting the `automatic` property in the indexing policy to `true`. Setting this property to `true` allows Azure Cosmos DB to automatically index items as they're written.
3535

3636
## <a id="index-size"></a>Index size
3737

@@ -87,6 +87,8 @@ Any indexing policy has to include the root path `/*` as either an included or a
8787

8888
- If the indexing mode is set to **consistent**, the system properties `id` and `_ts` are automatically indexed.
8989

90+
- All explicitly included paths will have a value stored for each item in the container. If an item doesn't have a given included path, the value `null` will be stored.
91+
9092
See [this section](how-to-manage-indexing-policy.md#indexing-policy-examples) for indexing policy examples for including and excluding paths.
9193

9294
## Include/exclude precedence
@@ -127,7 +129,7 @@ Azure Cosmos DB, by default, won't create any spatial indexes. If you would like
127129

128130
Queries that have an `ORDER BY` clause with two or more properties require a composite index. You can also define a composite index to improve the performance of many equality and range queries. By default, no composite indexes are defined so you should [add composite indexes](how-to-manage-indexing-policy.md#composite-index) as needed.
129131

130-
Unlike with included or excluded paths, you can't create a path with the `/*` wildcard. Every composite path has an implicit `/?` at the end of the path that you don't need to specify. Composite paths lead to a scalar value that is the only value included in the composite index.
132+
Unlike with included or excluded paths, you can't create a path with the `/*` wildcard. Every composite path has an implicit `/?` at the end of the path that you don't need to specify. Composite paths lead to a scalar value that is the only value included in the composite index. Values for each path in every composite index defined on a container will be stored for all items. If an item doesn't have a given path defined in the composite index, the value `null` will be stored.
131133

132134
When defining a composite index, you specify:
133135

0 commit comments

Comments
 (0)