---
title: "Migration: Server Breaking Changes"
description: "The features listed on this page were available in former RavenDB versions."
url: "https://docs.ravendb.net/6.2/migration/server/server-breaking-changes"
version: "6.2"
---

# Migration: Server Breaking Changes

> RavenDB publishes an official agent skill for coding assistants at https://docs.ravendb.net/skills/ravendb/SKILL.md (also installable with `npx skills add ravendb/skills`). The skill describes itself as: "Read this before writing any RavenDB query, client call or /databases/ request. Covers server setup, document modelling, the Node.js, .NET and Python clients, RQL, indexes, vector search and AI agents. Code written from recall tends to run and return the wrong rows, because RQL resembles SQL and the clients take field names as plain strings."

## Migration: Server Breaking Changes

> **Note**
>
> The features listed on this page were available in former RavenDB versions.  
> In RavenDB `6.2.x`, they are either unavailable or their behavior is inconsistent
> with their behavior in previous versions.
>
> - In this article:
>   - [MSSQL connection string requires an Encrypt property](#mssql-connection-string-requires-an-encrypt-property)
>   - [Corax handling of complex JSON objects in static indexes is configurable](#corax-handling-of-complex-json-objects-in-static-indexes-is-configurable)
>   - [Customizable identifier parts separator](#customizable-identifier-parts-separator)
>   - [Full-text search when the analyzer splits a search term](#full-text-search-when-the-analyzer-splits-a-search-term)

## MSSQL connection string requires an Encrypt property

To establish a connection with an MSSQL server via ETL, RavenDB is required
by the `Microsoft.Data.SqlClient` package it utilizes (which replaces the
deprecated `System.Data.SqlClient` package we've been using in previous versions)
to include in its connection string an `Encrypt` property that would determine
whether to encrypt the connection or not.

RavenDB versions preceding `6.2` (down to `6.0.105`) added this property
to their connection strings without bothering their users, setting it to
[Encrypt=Optional](https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlconnectionencryptoption.optional?view=sqlclient-dotnet-standard-5.2#microsoft-data-sqlclient-sqlconnectionencryptoption-optional)
and leaving the connection unencrypted unless users set it differently on
their own accord.  
From RavenDB 6.2 on, we no longer include this property in MSSQL connection
strings and users are required to explicitly choose whether to encrypt the
connection or not.

You can go on using [Encrypt=Optional](https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlconnectionencryptoption.optional?view=sqlclient-dotnet-standard-5.2#microsoft-data-sqlclient-sqlconnectionencryptoption-optional)
and leave your connection unencrypted, or include [Encrypt=Mandatory](https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlconnectionencryptoption.mandatory?view=sqlclient-dotnet-standard-5.2#microsoft-data-sqlclient-sqlconnectionencryptoption-mandatory)
or [Encrypt=Strict](https://learn.microsoft.com/en-us/dotnet/api/microsoft.data.sqlclient.sqlconnectionencryptoption.strict?view=sqlclient-dotnet-standard-5.2#microsoft-data-sqlclient-sqlconnectionencryptoption-strict)
in your connection string and provide the server you use with a valid certificate to encrypt the connection.

Provide the connection string using code
([like so](https://docs.ravendb.net/6.2/client-api/operations/maintenance/connection-strings/add-connection-string.md#add-an-sql-connection-string))
or via Studio:

![SQL ETL task](https://docs.ravendb.net/assets/images/breaking-changes_SQL-ETL-task-ff7bfdfc283e9308a6fcf1e454ddf824.png)

## Corax handling of complex JSON objects in static indexes is configurable

The behavior of RavenDB's [Corax](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md) search engine while
handling [complex JSON objects](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#handling-of-complex-json-objects)
in **static indexes** is now configurable using the `Indexing.Corax.Static.ComplexFieldIndexingBehavior`
configuration option (the [handling of auto indexes](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#if-corax-encounters-a-complex-property-while-indexing)
remains unchanged).

- By default, `ComplexFieldIndexingBehavior` is set to **`Throw`**, instructing the search
  engine to throw a [NotSupportedInCoraxException](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#if-corax-encounters-a-complex-property-while-indexing)
  exception when it encounters a complex field in a static index.

- If you prefer it, you can set `ComplexFieldIndexingBehavior` to **`Skip`** to disable the
  indexing of complex fields without throwing an exception or raising a notification.

> **Info**
>
> - The configuration option will apply only to [new static indexes](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#if-corax-encounters-a-complex-property-while-indexing),
>   created after the release of RavenDB `6.2`. It will not affect older indexes.
> - [ComplexFieldIndexingBehavior](https://docs.ravendb.net/6.2/server/configuration/indexing-configuration.md#indexingcoraxstaticcomplexfieldindexingbehavior)
>   can be set for a particular index as well as for all indexes.
> - Though complex fields cannot be indexed, they **can** still be [stored and projected](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#revise-index-definition-and-fields-usage).
> - To search by the contents of a static index's complex field, you can convert
>   it to a string (using `ToString` on the field value in the index definition).
>   It is recommended, though, to index [individual properties](https://docs.ravendb.net/6.2/indexes/search-engine/corax.md#index-a-simple-property-contained-in-the-complex-field)
>   of the complex field.

## Customizable identifier parts separator

Picking an [identifier parts separator](https://docs.ravendb.net/6.2/server/kb/document-identifier-generation.md#id-generation-by-server)
allows you to choose which character would be placed as a separator between ID parts
when new documents are given their IDs.

This configuration is available in the database level as well as server-wide, but in
versions lower than RavenDB `6.2` its server-wide level wasn't implemented even if
a new separator was selected.

RavenDB `6.2` applies your identifier parts separator selection in the server-wide level
as well. This means that if you selected a separator in a RavenDB version lower than `6.2`
and you now migrate to `6.2`, your selected separator **will become active**.

Please be aware of this change and check this setting before migrating.

![Identity parts separator](https://docs.ravendb.net/assets/images/breaking-changes_identity-parts-separator-8ac4aa325aa048dbd7f70bbc6ab92dd0.png)

After making this change, creating a new document with the identity prefix `|`, e.g. `user|`,
will apply your new separator.

![New separator](https://docs.ravendb.net/assets/images/breaking-changes_new-separator-0dded83873496efce8dc362500f2bc86.png)

## Full-text search when the analyzer splits a search term

Starting with RavenDB `6.0.104`, **Corax** changed how it handles a non-wildcard search term
that the [query-time analyzer](https://docs.ravendb.net/6.2/indexes/using-analyzers.md#analyzers-at-query-time) splits into multiple tokens.
For example, the default search analyzer splits `sales%representative` into the tokens `sales` and `representative`.

> **Note**
>
> ##### Corax behavior for versions lower than `6.0.104`:
>
> Corax matched tokens produced from one search term as independent terms.  
> The search operator combined those tokens (`OR` by default):
>
> - With `OR`, a document matched if the searched field contained at least one of the tokens.
> - With `AND`, the field had to contain all the tokens.
>
> The tokens could occur anywhere in the field and in any order.

> **Note**
>
> ##### Corax behavior for `6.0.104` and later:
>
> Corax matches tokens produced from one search term as a **phrase**.
> A document matches only when the tokens in the searched field are adjacent and occur in the same order as the analyzer-generated query tokens.
>
> This aligns Corax with the existing behavior of the Lucene search engine.
>
> > **Info**
> >
> > After upgrading to RavenDB `6.0.104` or later, this behavior applies without a reset to Corax indexes
> > that were created or reset in RavenDB `6.0.101` or later.
> > Older Corax indexes retain the legacy behavior until they are reset or recreated.
>
> See [Search with analyzer-generated phrases](https://docs.ravendb.net/6.2/client-api/session/querying/text-search/full-text-search.md#search-with-analyzer-generated-phrases)
> for detailed examples.
