How To
Documentation
    Learn More

      widget:spelling-suggestions

      Description

      Usage

      as element:
      <widget:spelling-suggestions
             response="{string}"
             query="{string}"
             [label="{string}"]
             [suffix="{string}"]
             [original-label="{string}"]
             [original-suffix="{string}"]
             [corrected-label="{string}"]
             [corrected-suffix="{string}"]>
      </widget:spelling-suggestions>

      Parameters

      ParamTypeDetails
      responsestring

      The name of the response from which to retrieve the spelling suggestion messages.

      querystring

      The name of the query originally submitted by the user. This can differ from the one on the Response which was sent to the search platform.

      label
      (optional)
      string

      The text that appears just BEFORE the spelling suggestion. (Used when the query is NOT autocorrected.)

      suffix
      (optional)
      string

      The text that appears just AFTER the spelling suggestion. (Used when the query is NOT autocorrected.)

      original-label
      (optional)
      string

      The text that appears just BEFORE the original query. (Used when the query IS autocorrected.)

      original-suffix
      (optional)
      string

      The text that appears just AFTER the original query. (Used when the query IS autocorrected.)

      corrected-label
      (optional)
      string

      The text that appears just BEFORE the spelling message. (Used when the query IS autocorrected.)

      corrected-suffix
      (optional)
      string

      The text that appears just AFTER the spelling message. (Used when the query IS autocorrected.)

      Example

      Source