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.Highlight

Description

 
Synopsis

Documentation

data Highlight Source #

Offset specification to describe highlighting of document excerpts for rendering search results and recommendations.

See: newHighlight smart constructor.

Constructors

Highlight' 

Fields

Instances

Instances details
Eq Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

Read Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

Show Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

Generic Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

Associated Types

type Rep Highlight :: Type -> Type #

NFData Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

Methods

rnf :: Highlight -> () #

Hashable Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

FromJSON Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

type Rep Highlight Source # 
Instance details

Defined in Amazonka.Wisdom.Types.Highlight

type Rep Highlight = D1 ('MetaData "Highlight" "Amazonka.Wisdom.Types.Highlight" "libZSservicesZSamazonka-wisdomZSamazonka-wisdom" 'False) (C1 ('MetaCons "Highlight'" 'PrefixI 'True) (S1 ('MetaSel ('Just "endOffsetExclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "beginOffsetInclusive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newHighlight :: Highlight Source #

Create a value of Highlight 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:endOffsetExclusive:Highlight', highlight_endOffsetExclusive - The offset for the end of the highlight.

$sel:beginOffsetInclusive:Highlight', highlight_beginOffsetInclusive - The offset for the start of the highlight.

highlight_endOffsetExclusive :: Lens' Highlight (Maybe Int) Source #

The offset for the end of the highlight.

highlight_beginOffsetInclusive :: Lens' Highlight (Maybe Int) Source #

The offset for the start of the highlight.