Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data SuggestModel = SuggestModel' {
- found :: Maybe Integer
- suggestions :: Maybe [SuggestionMatch]
- query :: Maybe Text
- newSuggestModel :: SuggestModel
- suggestModel_found :: Lens' SuggestModel (Maybe Integer)
- suggestModel_suggestions :: Lens' SuggestModel (Maybe [SuggestionMatch])
- suggestModel_query :: Lens' SuggestModel (Maybe Text)
Documentation
data SuggestModel Source #
Container for the suggestion information returned in a
SuggestResponse
.
See: newSuggestModel
smart constructor.
SuggestModel' | |
|
Instances
newSuggestModel :: SuggestModel Source #
Create a value of SuggestModel
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:found:SuggestModel'
, suggestModel_found
- The number of documents that were found to match the query string.
$sel:suggestions:SuggestModel'
, suggestModel_suggestions
- The documents that match the query string.
$sel:query:SuggestModel'
, suggestModel_query
- The query string specified in the suggest request.
suggestModel_found :: Lens' SuggestModel (Maybe Integer) Source #
The number of documents that were found to match the query string.
suggestModel_suggestions :: Lens' SuggestModel (Maybe [SuggestionMatch]) Source #
The documents that match the query string.
suggestModel_query :: Lens' SuggestModel (Maybe Text) Source #
The query string specified in the suggest request.