Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefineSuggesterCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { CloudSearchClient, DefineSuggesterCommand } from "@aws-sdk/client-cloudsearch"; // ES Modules import
// const { CloudSearchClient, DefineSuggesterCommand } = require("@aws-sdk/client-cloudsearch"); // CommonJS import
const client = new CloudSearchClient(config);
const command = new DefineSuggesterCommand(input);
const response = await client.send(command);
see

DefineSuggesterCommandInput for command's input shape.

see

DefineSuggesterCommandOutput for command's response shape.

see

config for CloudSearchClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DefineSuggesterCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<DefineSuggesterCommandInput, DefineSuggesterCommandOutput>

Methods

Static getEndpointParameterInstructions