libZSservicesZSamazonka-wisdomZSamazonka-wisdom
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Wisdom.Types.ResultData

Description

 
Synopsis

Documentation

data ResultData Source #

Information about the result.

See: newResultData smart constructor.

Constructors

ResultData' 

Fields

Instances

Instances details
Eq ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

Show ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

Generic ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

Associated Types

type Rep ResultData :: Type -> Type #

NFData ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

Methods

rnf :: ResultData -> () #

Hashable ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

FromJSON ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

type Rep ResultData Source # 
Instance details

Defined in Amazonka.Wisdom.Types.ResultData

type Rep ResultData = D1 ('MetaData "ResultData" "Amazonka.Wisdom.Types.ResultData" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "ResultData'" 'PrefixI 'True) (S1 ('MetaSel ('Just "relevanceScore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Document) :*: S1 ('MetaSel ('Just "resultId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newResultData Source #

Create a value of ResultData 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:relevanceScore:ResultData', resultData_relevanceScore - The relevance score of the results.

$sel:document:ResultData', resultData_document - The document.

$sel:resultId:ResultData', resultData_resultId - The identifier of the result data.

resultData_relevanceScore :: Lens' ResultData (Maybe Double) Source #

The relevance score of the results.

resultData_resultId :: Lens' ResultData Text Source #

The identifier of the result data.