Skip to content

Commit 41369e7

Browse files
authored
Merge pull request #176494 from timsander1/master
add note about indexing policy for V3 SDK migration
2 parents 85904b8 + cd82fef commit 41369e7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

articles/cosmos-db/sql/migrate-dotnet-v3.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: esarroyo
66
ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.topic: how-to
9-
ms.date: 10/04/2021
9+
ms.date: 10/19/2021
1010
---
1111

1212
# Migrate your application to use the Azure Cosmos DB .NET SDK v3
@@ -193,6 +193,17 @@ Some settings in `ConnectionPolicy` have been renamed or replaced:
193193
|`ConnectionProtocol`|Removed. Protocol is tied to the Mode, either it's Gateway (HTTPS) or Direct (TCP). Direct mode with HTTPS protocol is no longer supported on V3 SDK and the recommendation is to use TCP protocol. |
194194
|`MediaRequestTimeout`|Removed. Attachments are no longer supported.|
195195

196+
### Indexing policy
197+
198+
In the indexing policy, it is not possible to configure these properties. When not specified, these properties will now always have the following values:
199+
200+
| **Property Name** | **New Value (not configurable)** |
201+
| ----------------------- | -------------------------------- |
202+
| `Kind` | `range` |
203+
| `dataType` | `String` and `Number` |
204+
205+
See [this section](how-to-manage-indexing-policy.md#indexing-policy-examples) for indexing policy examples for including and excluding paths. Due to improvements in the query engine, configuring these properties, even if using an older SDK version, has no impact on performance.
206+
196207
### Session token
197208

198209
Where the v2 SDK exposed the session token of a response as `ResourceResponse.SessionToken` for cases where capturing the session token was required, because the session token is a header, the v3 SDK exposes that value in the `Headers.Session` property of any response.

0 commit comments

Comments
 (0)