--- title: Version 1.x to 2.x breaking changes and upgrade guidelines slug: '418' canonical_url: https://docs.coveo.com/en/418/ collection: javascript-search-framework source_format: adoc --- # Version 1.x to 2.x breaking changes and upgrade guidelines Although the [July 2017 release (v2.2900.23)](https://docs.coveo.com/en/373#july-2017-release-v2290023) of the Coveo JavaScript Search Framework is a "major" release, updating a search page from version 1.x of the framework is usually a relatively straightforward process. This article briefly underlines the breaking changes introduced by this release, as well as its other major non-breaking new features. ## Upgrading Coveo hosted search pages To upgrade a Coveo legacy [hosted search page](https://docs.coveo.com/en/2866/) used in production . In the Coveo Administration Console, on the Search Pages (platform-ca | platform-eu | platform-au) page, click the desired page, and then click **Edit interface** in the Action bar. . In the Interface Editor, select the **Code View** tab, and then copy the entire code. . [Create a legacy hosted search page](https://docs.coveo.com/en/1656#create-a-hosted-search-interface). This page will automatically be using the latest version of the JavaScript Search Framework. . Open the new page in the Interface Editor, select the **Code View** tab, and replace the code with the one you copied in step 1. . Read the list of [breaking changes](#breaking-changes) between v1.x and v2.x and fix issues until your new page is working properly. . When satisfied, [rename the old page](https://docs.coveo.com/en/1656#edit-a-legacy-hosted-search-page) (for example, to `MyProductionPageBackup`), and rename the new page to the old page's original name (for example, `MyProductionPage`). The URL that previously pointed to the old page will now point to the new one. Eventually, you can [delete the old page](https://docs.coveo.com/en/1656#delete-a-search-page) entirely. ## Breaking changes The [July 2017 release (v2.2900.23)](https://docs.coveo.com/en/373#july-2017-release-v2290023) of the Coveo JavaScript Search Framework can introduce a few minor breaking changes from versions 1.x, but only in specific cases. ### Query syntax is now disabled by default > **Important** > > This change is only breaking if you didn't explicitly specify the value of the `enableQuerySyntax` option in the `Searchbox`, `Querybox`, or `Omnibox` component of your search page. Previously, the `Querybox` `enableQuerySyntax` option default value was `true`. As a result, unless you explicitly set this option to `false` when configuring your search box, the end user could input and submit valid Coveo query syntax (such as `@myfield=="my value"`), which the Search API would then parse and interpret as such. Since the Coveo JavaScript Search Framework 2.2900 release, the Coveo query syntax is disabled by default. To enable the query syntax for all end users in your search page, set the `enableQuerySyntax` option to `true` in your `Searchbox` component: **Example** [,xml] ```
``` A new `enableQuerySyntax` option is also available in the `ResultsPreferences` component. You can set this option to `true` if you want individual end users to be able to specify, in the **Preferences** panel, whether to enable query syntax on the search page, or let the `Searchbox` `enableQuerySyntax` option value automatically decide: **Example** [,html] ``` ...