Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
- defineSuggester :: Text -> Suggester -> DefineSuggester
- data DefineSuggester
- defDomainName :: Lens' DefineSuggester Text
- defSuggester :: Lens' DefineSuggester Suggester
- defineSuggesterResponse :: Int -> SuggesterStatus -> DefineSuggesterResponse
- data DefineSuggesterResponse
- dsrsResponseStatus :: Lens' DefineSuggesterResponse Int
- dsrsSuggester :: Lens' DefineSuggesterResponse SuggesterStatus
Creating a Request
Creates a value of DefineSuggester
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
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: defineSuggester
smart constructor.
Request Lenses
defDomainName :: Lens' DefineSuggester Text Source #
Undocumented member.
defSuggester :: Lens' DefineSuggester Suggester Source #
Undocumented member.
Destructuring the Response
defineSuggesterResponse Source #
Creates a value of DefineSuggesterResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DefineSuggesterResponse Source #
The result of a DefineSuggester
request. Contains the status of the newly-configured suggester.
See: defineSuggesterResponse
smart constructor.
Response Lenses
dsrsResponseStatus :: Lens' DefineSuggesterResponse Int Source #
The response status code.
dsrsSuggester :: Lens' DefineSuggesterResponse SuggesterStatus Source #
Undocumented member.