AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

SuggestionMatch

import "github.com/aws/aws-sdk-go/service/cloudsearchdomain"

type SuggestionMatch struct { Id *string `locationName:"id" type:"string"` Score *int64 `locationName:"score" type:"long"` Suggestion *string `locationName:"suggestion" type:"string"` }

An autocomplete suggestion that matches the query string specified in a SuggestRequest.

Id

Type: *string

The document ID of the suggested document.

Score

Type: *int64

The relevance score of a suggested match.

Suggestion

Type: *string

The string that matches the query string specified in the SuggestRequest.

Method

GoString

func (s SuggestionMatch) GoString() string

GoString returns the string representation

SetId

func (s *SuggestionMatch) SetId(v string) *SuggestionMatch

SetId sets the Id field's value.

SetScore

func (s *SuggestionMatch) SetScore(v int64) *SuggestionMatch

SetScore sets the Score field's value.

SetSuggestion

func (s *SuggestionMatch) SetSuggestion(v string) *SuggestionMatch

SetSuggestion sets the Suggestion field's value.

String

func (s SuggestionMatch) String() string

String returns the string representation

On this page: