|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
The Amazon CloudSearch console enables you to easily compare rank expressions to see how changes to the expression and field weights affect how search results are sorted.
To compare rank expressions
Sign in to the AWS Management Console and open the Amazon CloudSearch console.
In the Navigation pane, select a domain, and then click the domain's Compare Rank Expressions link.
In the Compare Rank Expressions pane, specify the rank expressions you want to compare. In each Rank Expression editor, you can add a new rank expression or select an existing expression from the Expressions menu. New rank expressions are validated when you submit a search request. If errors are detected, the rank expression is highlighted in red and a description of the problem is displayed.
Specify the field weights to use for each rank expression by adjusting the sliders in the Field Weights menu. You can also edit the field weights directly in the rank expression. Field weights must be in the range 0.0 to 10.0, inclusive. By default, the weight for all fields is set to 1.0. Setting individual field weights enables you to control how much matches in particular text or literal fields affect a document's text_relevance score. You can also change the default weight.
Adjusting field weights only affects result ranking if the rank expression uses the cs.text_relevance function. When you adjust the weights, the cs.text_relevance function is automatically inserted in the rank expression. You can modify the expression to change how the customized text_relevance score contributes to a document's overall ranking. For more information, see Using Relative Field Weighting to Customize Text Relevance in Amazon CloudSearch.
Enter the terms you want to search for in the Search field and click GO. The results for the search are ranked using the specified rank expressions and weights. The results are refreshed whenever you make changes to the rank expressions or weights.
The search results for the two rank expressions are shown side-by-side. (If the rank expression is empty, the results are sorted according to the default text_relevance score.) Four icons are used to highlight the differences:
The document is ranked higher in the search results using the second rank expression.
The document is ranked lower in the search results using the second rank expression.
The document is included in the search results using the second rank expression, but was omitted from the search results using the first rank expression.
The document was omitted from the search results using the second rank expression, but was included in the search results using the first rank expression.
You can save rank expressions to your domain configuration directly from the Compare Rank Expressions pane. To save either rank expression, select Save Expression from the Expressions menu, enter a name for the expression, and click OK.