Comparing Expressions in Amazon CloudSearch - Amazon CloudSearch

Comparing Expressions in Amazon CloudSearch

You can use the Amazon CloudSearch console to compare expressions and see how changes to the expression and field weights affect how Amazon CloudSearch sorts search results.

To compare expressions
  1. Open the Amazon CloudSearch console at https://console.aws.amazon.com/cloudsearch/home.

  2. In the left navigation pane, choose Domains.

  3. Choose the name of the domain to open its configuration.

  4. Choose Actions, Compare expressions.

  5. In the Search box, enter the terms you want to search for. Amazon CloudSearch ranks the search results using the specified expressions and weights. It refreshes the results whenever you make changes to the expressions or weights.

  6. In each expression editor, specify the rank expressions to compare. You can add new expressions or select an existing expression from the Saved expressions menu. Amazon CloudSearch evaluates new expressions when you submit a search request.

  7. Specify the field weights to use for each expression. You can also edit the field weights directly in the 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. You can set individual field weights to control how much matches in particular text or literal fields affect a document's relevance _score. You can also change the default weight.

    Note

    Adjusting field weights only affects result ranking if the expression references the _score value. You can modify the expression to change how the weight relevance _score contributes to a document's overall ranking. For more information, see Using Relative Field Weighting to Customize Text Relevance.

  8. Choose Run.

  9. The search results for the two expressions are shown side-by-side. (If the expression is empty, the results are sorted according to the default relevance _score.) Four icons highlight the differences:

    Green upward-pointing arrow icon indicating an increase or positive trend. Green up arrow

    The document is ranked higher in the search results using the second expression.

    Red downward-pointing arrow icon indicating a download or direction. Red down arrow

    The document is ranked lower in the search results using the second expression.

    Yellow plus sign icon typically used to indicate an add or create action. Yellow plus

    The document is included in the search results using the second expression, but was omitted from the search results using the first expression.

    Red circular sign with a white horizontal bar, indicating prohibition or restriction. Red minus

    The document was omitted from the search results using the second expression, but was included in the search results using the first expression.

Note

You can save expressions to your domain configuration directly from the Compare expressions pane. To save either expression, choose Save expression.