Configures a suggester for a domain. A suggester enables you to display possible matches before users finish typing their queries. When you configure a suggester, you must specify the name of the text field you want to search for possible matches and a unique name for the suggester. For more information, see Getting Search Suggestions in the Amazon CloudSearch Developer Guide.
cloudsearch_define_suggester(DomainName, Suggester)
A list with the following syntax:
list(
Suggester = list(
Options = list(
SuggesterName = "string",
DocumentSuggesterOptions = list(
SourceField = "string",
FuzzyMatching = "none"|"low"|"high",
SortExpression = "string"
)
),
Status = list(
CreationDate = as.POSIXct(
"2015-01-01"
),
UpdateDate = as.POSIXct(
"2015-01-01"
),
UpdateVersion = 123,
State = "RequiresIndexDocuments"|"Processing"|"Active"|"FailedToValidate",
PendingDeletion = TRUE|FALSE
)
)
)
[required]
[required]
svc$define_suggester(
DomainName = "string",
Suggester = list(
SuggesterName = "string",
DocumentSuggesterOptions = list(
SourceField = "string",
FuzzyMatching = "none"|"low"|"high",
SortExpression = "string"
)
)
)