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 |
Documentation
Information about a document that matches the search request.
See: newHit
smart constructor.
Hit' | |
|
Instances
Eq Hit Source # | |
Read Hit Source # | |
Show Hit Source # | |
Generic Hit Source # | |
NFData Hit Source # | |
Defined in Amazonka.CloudSearchDomains.Types.Hit | |
Hashable Hit Source # | |
Defined in Amazonka.CloudSearchDomains.Types.Hit | |
FromJSON Hit Source # | |
type Rep Hit Source # | |
Defined in Amazonka.CloudSearchDomains.Types.Hit type Rep Hit = D1 ('MetaData "Hit" "Amazonka.CloudSearchDomains.Types.Hit" "libZSservicesZSamazonka-cloudsearch-domainsZSamazonka-cloudsearch-domains" 'False) (C1 ('MetaCons "Hit'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "exprs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "highlights") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "fields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text [Text])))))) |
Create a value of Hit
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:exprs:Hit'
, hit_exprs
- The expressions returned from a document that matches the search
request.
$sel:id:Hit'
, hit_id
- The document ID of a document that matches the search request.
$sel:highlights:Hit'
, hit_highlights
- The highlights returned from a document that matches the search request.
$sel:fields:Hit'
, hit_fields
- The fields returned from a document that matches the search request.
hit_exprs :: Lens' Hit (Maybe (HashMap Text Text)) Source #
The expressions returned from a document that matches the search request.
hit_id :: Lens' Hit (Maybe Text) Source #
The document ID of a document that matches the search request.