Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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.
Synopsis
- data DefineSuggester = DefineSuggester' {
- domainName :: Text
- suggester :: Suggester
- newDefineSuggester :: Text -> Suggester -> DefineSuggester
- defineSuggester_domainName :: Lens' DefineSuggester Text
- defineSuggester_suggester :: Lens' DefineSuggester Suggester
- data DefineSuggesterResponse = DefineSuggesterResponse' {}
- newDefineSuggesterResponse :: Int -> SuggesterStatus -> DefineSuggesterResponse
- defineSuggesterResponse_httpStatus :: Lens' DefineSuggesterResponse Int
- defineSuggesterResponse_suggester :: Lens' DefineSuggesterResponse SuggesterStatus
Creating a Request
data DefineSuggester Source #
Container for the parameters to the DefineSuggester
operation.
Specifies the name of the domain you want to update and the suggester
configuration.
See: newDefineSuggester
smart constructor.
Instances
Create a value of DefineSuggester
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DefineSuggester
, defineSuggester_domainName
- Undocumented member.
DefineSuggester
, defineSuggester_suggester
- Undocumented member.
Request Lenses
defineSuggester_domainName :: Lens' DefineSuggester Text Source #
Undocumented member.
defineSuggester_suggester :: Lens' DefineSuggester Suggester Source #
Undocumented member.
Destructuring the Response
data DefineSuggesterResponse Source #
The result of a DefineSuggester
request. Contains the status of the
newly-configured suggester.
See: newDefineSuggesterResponse
smart constructor.
DefineSuggesterResponse' | |
|
Instances
newDefineSuggesterResponse Source #
Create a value of DefineSuggesterResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DefineSuggesterResponse'
, defineSuggesterResponse_httpStatus
- The response's http status code.
DefineSuggester
, defineSuggesterResponse_suggester
- Undocumented member.
Response Lenses
defineSuggesterResponse_httpStatus :: Lens' DefineSuggesterResponse Int Source #
The response's http status code.
defineSuggesterResponse_suggester :: Lens' DefineSuggesterResponse SuggesterStatus Source #
Undocumented member.