Skip to content

Commit ae59f31

Browse files
Freshness pass in progress.
1 parent be9dce0 commit ae59f31

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

articles/cosmos-db/nosql/how-to-manage-indexing-policy.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ In Azure Cosmos DB, data is indexed following [indexing policies](../index-polic
2121
2222
## Indexing policy examples
2323

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.
2525

2626
### <a id="range-index"></a>Opt-out policy to selectively exclude some property paths
2727

@@ -100,7 +100,7 @@ Here are some examples of indexing policies shown in [their JSON format](../inde
100100

101101
## <a id="composite-index"></a>Composite indexing policy examples
102102

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 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.
104104

105105
> [!NOTE]
106106
> 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
132132
}
133133
```
134134

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:
136136

137137
Query #1:
138138

@@ -150,7 +150,7 @@ Query #2:
150150
ORDER BY c.name DESC, c.age ASC
151151
```
152152

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:
154154

155155
Query #3:
156156

@@ -210,7 +210,7 @@ You can define multiple different composite indexes within the same indexing pol
210210

211211
### Composite index defined for (name ASC, age ASC):
212212

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.
214214

215215
```json
216216
{
@@ -237,7 +237,7 @@ It is optional to specify the order. If not specified, the order is ascending.
237237

238238
### Excluding all property paths but keeping indexing active
239239

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).
241241

242242
```json
243243
{
@@ -251,7 +251,7 @@ This policy can be used in situations where the [Time-to-Live (TTL) feature](tim
251251

252252
### No indexing
253253

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.
255255

256256
```json
257257
{
@@ -283,11 +283,11 @@ Azure Cosmos DB containers store their indexing policy as a JSON document that t
283283

284284
1. Open the **Data Explorer** pane and select the container that you want to work on.
285285

286-
1. Click on **Scale & Settings**.
286+
1. Select on **Scale & Settings**.
287287

288288
1. Modify the indexing policy JSON document (see examples [below](#indexing-policy-examples))
289289

290-
1. Click **Save** when you are done.
290+
1. Select **Save** when you're done.
291291

292292
:::image type="content" source="./media/how-to-manage-indexing-policy/indexing-policy-portal.png" alt-text="Manage Indexing using Azure portal":::
293293

@@ -545,7 +545,7 @@ const indexTransformationProgress = replaceResponse.headers['x-ms-documentdb-col
545545

546546
# [Python SDK V3](#tab/pythonv3)
547547

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 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.
549549

550550
Retrieve the container's details
551551

@@ -609,7 +609,7 @@ response = client.ReplaceContainer(containerPath, container)
609609

610610
# [Python SDK V4](#tab/pythonv4)
611611

612-
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.
613613

614614
Retrieve the container's details
615615

0 commit comments

Comments
 (0)