The expression to evaluate for ranking or thresholding while processing a search request. The RankExpression syntax is based on
JavaScript expressions and supports:

- Integer, floating point, hex and octal literals
- Shortcut evaluation of logical operators such that an expression a || b evaluates to the value a, if a is true, without evaluating b at all
- JavaScript order of precedence for operators
- Arithmetic operators: + - * / %
- Boolean operators (including the ternary operator)
- Bitwise operators
- Comparison operators
- Common mathematic functions: abs ceil erf exp floor lgamma ln log2 log10 max min sqrt pow
- Trigonometric library functions: acosh acos asinh asin atanh atan cosh cos sinh sin tanh tan
- Random generation of a number between 0 and 1: rand
- Current time in epoch: time
- The min max functions that operate on a variable argument list

*text_relevance*. The text_relevance source is defined to return an integer from 0 to 1000 (inclusive) to indicate how relevant a document is to the search request, taking into account repetition of search terms in the document and proximity of search terms to each other in each matching IndexField in the document. For more information about using rank expressions to customize ranking, see the Amazon CloudSearch Developer Guide.**Constraints:**

Declaration Syntax

C# |

public string RankExpression { get; set; }