You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/nosql/how-to-manage-indexing-policy.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ In Azure Cosmos DB, data is indexed following [indexing policies](../index-polic
21
21
22
22
## Indexing policy examples
23
23
24
-
Here are some examples of indexing policies shown in [their JSON format](../index-policy.md#include-exclude-paths), which is how they are exposed on the Azure portal. The same parameters can be set through the Azure CLI or any SDK.
24
+
Here are some examples of indexing policies shown in [their JSON format](../index-policy.md#include-exclude-paths), which is how they're exposed on the Azure portal. The same parameters can be set through the Azure CLI or any SDK.
25
25
26
26
### <aid="range-index"></a>Opt-out policy to selectively exclude some property paths
27
27
@@ -100,7 +100,7 @@ Here are some examples of indexing policies shown in [their JSON format](../inde
In addition to including or excluding paths for individual properties, you can also specify a composite index. If you would like to perform a query that has an `ORDER BY` clause for multiple properties, a [composite index](../index-policy.md#composite-indexes) on those properties is required. Additionally, composite indexes will have a performance benefit for queries that have multiple filters or both a filter and an ORDER BY clause.
103
+
In addition to including or excluding paths for individual properties, you can also specify a composite index. If you would like to perform a query that has an `ORDER BY` clause for multiple properties, a [composite index](../index-policy.md#composite-indexes) on those properties is required. Additionally, composite indexes have a performance benefit for queries that have multiple filters or both a filter and an ORDER BY clause.
104
104
105
105
> [!NOTE]
106
106
> Composite paths have an implicit `/?` since only the scalar value at that path is indexed. The `/*` wildcard is not supported in composite paths. You shouldn't specify `/?` or `/*` in a composite path.
@@ -132,7 +132,7 @@ In addition to including or excluding paths for individual properties, you can a
132
132
}
133
133
```
134
134
135
-
The above composite index on name and age is required for Query #1 and Query #2:
135
+
The composite index on name and age is required for Query #1 and Query #2:
136
136
137
137
Query #1:
138
138
@@ -150,7 +150,7 @@ Query #2:
150
150
ORDER BYc.nameDESC, c.ageASC
151
151
```
152
152
153
-
This composite index will benefit Query #3 and Query #4 and optimize the filters:
153
+
This composite index benefits Query #3 and Query #4 and optimize the filters:
154
154
155
155
Query #3:
156
156
@@ -210,7 +210,7 @@ You can define multiple different composite indexes within the same indexing pol
210
210
211
211
### Composite index defined for (name ASC, age ASC):
212
212
213
-
It is optional to specify the order. If not specified, the order is ascending.
213
+
It's optional to specify the order. If not specified, the order is ascending.
214
214
215
215
```json
216
216
{
@@ -237,7 +237,7 @@ It is optional to specify the order. If not specified, the order is ascending.
237
237
238
238
### Excluding all property paths but keeping indexing active
239
239
240
-
This policy can be used in situations where the [Time-to-Live (TTL) feature](time-to-live.md) is active but no additional indexes are necessary (to use Azure Cosmos DB as a pure key-value store).
240
+
This policy can be used in situations where the [Time-to-Live (TTL) feature](time-to-live.md) is active but no other indexes are necessary (to use Azure Cosmos DB as a pure key-value store).
241
241
242
242
```json
243
243
{
@@ -251,7 +251,7 @@ This policy can be used in situations where the [Time-to-Live (TTL) feature](tim
251
251
252
252
### No indexing
253
253
254
-
This policy will turn off indexing. If `indexingMode` is set to `none`, you cannot set a TTL on the container.
254
+
This policy turns off indexing. If `indexingMode` is set to `none`, you can't set a TTL on the container.
255
255
256
256
```json
257
257
{
@@ -283,11 +283,11 @@ Azure Cosmos DB containers store their indexing policy as a JSON document that t
283
283
284
284
1. Open the **Data Explorer** pane and select the container that you want to work on.
285
285
286
-
1.Click on **Scale & Settings**.
286
+
1.Select on **Scale & Settings**.
287
287
288
288
1. Modify the indexing policy JSON document (see examples [below](#indexing-policy-examples))
289
289
290
-
1.Click**Save** when you are done.
290
+
1.Select**Save** when you're done.
291
291
292
292
:::image type="content" source="./media/how-to-manage-indexing-policy/indexing-policy-portal.png" alt-text="Manage Indexing using Azure portal":::
When using the [Python SDK V3](https://pypi.org/project/azure-cosmos/) (see [this Quickstart](quickstart-python.md) regarding its usage), the container configuration is managed as a dictionary. From this dictionary, it is possible to access the indexing policy and all its attributes.
548
+
When using the [Python SDK V3](https://pypi.org/project/azure-cosmos/) (see [this Quickstart](quickstart-python.md) regarding its usage), the container configuration is managed as a dictionary. From this dictionary, it's possible to access the indexing policy and all its attributes.
When using the [Python SDK V4](https://pypi.org/project/azure-cosmos/), the container configuration is managed as a dictionary. From this dictionary, it is possible to access the indexing policy and all its attributes.
612
+
When you use the [Python SDK V4](https://pypi.org/project/azure-cosmos/), the container configuration is managed as a dictionary. From this dictionary, it's possible to access the indexing policy and all its attributes.
0 commit comments