Skip to content

/AWS1/CL_SRHEXPRESSION

A named expression that can be evaluated at search time. Can be used to sort the search results, define other expressions, or return computed information in the search results.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_expressionname TYPE /AWS1/SRHSTANDARDNAME /AWS1/SRHSTANDARDNAME

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

iv_expressionvalue TYPE /AWS1/SRHEXPRESSIONVALUE /AWS1/SRHEXPRESSIONVALUE

The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.


Queryable Attributes

ExpressionName

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

Accessible with the following methods

Method Description
GET_EXPRESSIONNAME() Getter for EXPRESSIONNAME, with configurable default
ASK_EXPRESSIONNAME() Getter for EXPRESSIONNAME w/ exceptions if field has no valu
HAS_EXPRESSIONNAME() Determine if EXPRESSIONNAME has a value

ExpressionValue

The expression to evaluate for sorting while processing a search request. The Expression syntax is based on JavaScript expressions. For more information, see Configuring Expressions in the Amazon CloudSearch Developer Guide.

Accessible with the following methods

Method Description
GET_EXPRESSIONVALUE() Getter for EXPRESSIONVALUE, with configurable default
ASK_EXPRESSIONVALUE() Getter for EXPRESSIONVALUE w/ exceptions if field has no val
HAS_EXPRESSIONVALUE() Determine if EXPRESSIONVALUE has a value