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.

SuggestModel

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

type SuggestModel struct { Found *int64 `locationName:"found" type:"long"` Query *string `locationName:"query" type:"string"` Suggestions []*SuggestionMatch `locationName:"suggestions" type:"list"` }

Container for the suggestion information returned in a SuggestResponse.

Found

Type: *int64

The number of documents that were found to match the query string.

Query

Type: *string

The query string specified in the suggest request.

Suggestions

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

Method

GoString

func (s SuggestModel) GoString() string

GoString returns the string representation

SetFound

func (s *SuggestModel) SetFound(v int64) *SuggestModel

SetFound sets the Found field's value.

SetQuery

func (s *SuggestModel) SetQuery(v string) *SuggestModel

SetQuery sets the Query field's value.

SetSuggestions

func (s *SuggestModel) SetSuggestions(v []*SuggestionMatch) *SuggestModel

SetSuggestions sets the Suggestions field's value.

String

func (s SuggestModel) String() string

String returns the string representation

On this page: