--- title: Query extension language slug: '1463' canonical_url: https://docs.coveo.com/en/1463/ collection: build-a-search-ui source_format: adoc --- # Query extension language In a search box, users typically enter [queries](https://docs.coveo.com/en/231/) made up of one or more [keywords](https://docs.coveo.com/en/2738/). Experienced users may also use double-quote delimited strings to perform phrase searches, use prefixes, operators, or [fields](https://docs.coveo.com/en/200/) to create more precise [queries](https://docs.coveo.com/en/231/). Some more advanced users may even go as far as to use [Coveo query syntax](https://docs.coveo.com/en/1552/). The Coveo [query extension language](https://docs.coveo.com/en/1415/) pushes the power of [queries](https://docs.coveo.com/en/231/) further by allowing you, an administrator or a developer, to integrate contextual business information in [queries](https://docs.coveo.com/en/231/) to return highly relevant content to your users. You can use [query extensions](https://docs.coveo.com/en/1397/) in components such as Coveo [Insight Panels](https://docs.coveo.com/en/2898/) in Salesforce to automatically present personalized context-related content in [search interfaces](https://docs.coveo.com/en/2741/) so that your users can discover business relationships without even having to type a [query](https://docs.coveo.com/en/231/). ## Example [Coveo for Salesforce](https://docs.coveo.com/en/1243/) takes advantage of [query extensions](https://docs.coveo.com/en/1397/) to define the content of Coveo [Insight Panels](https://docs.coveo.com/en/1087/). In the Salesforce **Cases** tab, when the user selects a case, the Coveo [Insight Panel](https://docs.coveo.com/en/2898/) presents one or more boxes that are automatically filled with relevant information. The **Similar Cases** box in the following image lists cases that share subject and concept [keywords](https://docs.coveo.com/en/2738/) with the currently selected case. ![Coveo Insight Panel - Similar Cases box](https://docs.coveo.com/en/assets/images/coveo-platform/attachments/3081049/3178543.png) The following [query](https://docs.coveo.com/en/231/), used to generate the content of the [Insight Panel](https://docs.coveo.com/en/2898/), is built using the Coveo [query extension language](https://docs.coveo.com/en/1415/). ```javascript @objecttype==case(NOT @sfid=="{!Id}") $correlateResultSet(resultSet: @sfid=="{!Id}", field: "@sysconcepts", maximumValues: '25', modifier: '10000') $correlateUsingIdf(keywords: "{!>Subject}") sdfaksjdfkl;asdj flask;dfjl;kasdfj ``` > **Important** > > You can use the [Coveo for Salesforce](https://docs.coveo.com/en/1404/) user interface to [create Coveo Insight Panels](https://docs.coveo.com/en/1300/) using predefined or custom [query extensions](https://docs.coveo.com/en/1397/).