--- title: Expression basics slug: '1303' canonical_url: https://docs.coveo.com/en/1303/ collection: coveo-for-salesforce source_format: adoc --- # Expression basics A Coveo query expression can be as simple as a single keyword, but can also include more complex expressions including fields, operators, prefixes, and more. For more information on the Coveo query syntax see [Coveo Query Syntax Reference](https://www.coveo.com/go?dest=searchhelp120&context=10005). ## Keyword expressions Here are some facts and guidelines about keyword expressions (see also [Basic Query Composition Facts and Guidelines](https://www.coveo.com/go?dest=searchhelp120&context=10007)): * Choose descriptive words. * Use the right number of terms. * Try synonyms (see [Manage the thesaurus of your Coveo organization](https://docs.coveo.com/en/3405/)). * Same root words are searched (see [About Stemming](https://www.coveo.com/go?dest=searchhelp120&context=10008)). * Each term is important. * Term order isn't important. * Terms aren't case sensitive. * Accentuated words are taken into account. * Misspelled words are corrected (see [How Are Misspelled Words Handled?](https://www.coveo.com/go?dest=searchhelp120&context=10009)). * Punctuation is ignored. * Special characters may have special effects (see [Using Special Characters in Queries](https://www.coveo.com/go?dest=searchhelp120&context=10010)). * Numbers are important. ## Field expressions Akin to keyword expressions, data that describes other data is called `metadata`, or sometimes, `properties` or `attributes`. In a Coveo implementation, metadata is referred to as `fields` in the unified index. Field expressions are used throughout Coveo products, sometimes hidden in the code. For example, facets are simply built from a field expression: `@[FieldName][RelationalOperator][FieldValue]`. Some other field uses include: * For filtering - by applying a scope to a search tab (if using the JavaScript Search UI). * For formatting - by tailoring the template that displays information on a result. * For sorting - by providing less generic sorting options. * For relevancy - by providing optimization of search relevancy with ranking expressions. To see which fields you may use and also the behavior inferred to each field, see [Available System Fields](https://www.coveo.com/go?dest=adminhelp120&context=142). ## Expression operators In either case of Keyword Expressions or Field Expressions, there's a wide range of prefixes and operators that can scope the matching possibilities on the index (see [Search Prefix and Operators](https://www.coveo.com/go?dest=searchhelp120&context=10011)). In some specific cases, there are even advanced field expressions which can be applied (see [Advanced Field Queries](https://www.coveo.com/go?dest=searchhelp120&context=10012)). ## Expression completion or suggestion The Coveo search box can feature query completion to help reduce expression typing and suggest relevant expressions or search results that you can immediately select (see [Using Query Completion](https://www.coveo.com/go?dest=searchhelp120&context=10013)). The typed string matches the beginning of words anywhere in the suggestion, therefore maximizing the probability to quickly find an appropriate suggestion. Within the JavaScript Search UI, query completion is provided by the means of the Omnibox Component and OmniboxResultList Component. Another feature that provides help for effective queries is the Did You Mean feature (see [How Are Misspelled Words Handled?](https://www.coveo.com/go?dest=searchhelp120&context=10009)). Within our JavaScript Search UI, misspelled expressions are managed by the DidYouMean Component. > **Important** > > In an Experience Cloud site, the Coveo-powered search interface only supports the **Did You Mean** feature when associated to the Standalone Search Box (see [Leverage the Coveo standalone search box](https://docs.coveo.com/en/1218#leverage-the-coveo-standalone-search-box)).