Skip to content

Commit 43fc34e

Browse files
committed
update index policy for undefined paths
1 parent 3bf5604 commit 43fc34e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cosmos-db/index-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ 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.
90+
- All explicitly included paths will have values added to the index for each item in the container, even if the path is undefined for a given item.
9191

9292
See [this section](how-to-manage-indexing-policy.md#indexing-policy-examples) for indexing policy examples for including and excluding paths.
9393

@@ -129,7 +129,7 @@ Azure Cosmos DB, by default, won't create any spatial indexes. If you would like
129129

130130
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.
131131

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.
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, even if the path is undefined for a given item.
133133

134134
When defining a composite index, you specify:
135135

0 commit comments

Comments
 (0)