v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1452132172.2 KB

Configures an <code><a>Expression</a></code> for the search domain. Used to create new expressions and modify existing ones. If the expression exists, the new configuration replaces the old one. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>.

get/#Action=DefineExpression

Query parameters

DomainNamestring required

A string that represents the name of a domain. Domain names are unique across the domains owned by an account within an AWS region. Domain names start with a letter or number and can contain the following characters: a-z (lowercase), 0-9, and - (hyphen).

ExpressionNamestring required

Names must begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore).

ExpressionValuestring required

The expression to evaluate for sorting while processing a search request. The <code>Expression</code> syntax is based on JavaScript expressions. For more information, see <a href="http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html" target="_blank">Configuring Expressions</a> in the <i>Amazon CloudSearch Developer Guide</i>.

Action'DefineExpression' required
Version'2013-01-01' required

Response

Success