amazonka-kendra-2.0: Amazon KendraFrontendService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Kendra.Types.Facet

Description

 
Synopsis

Documentation

data Facet Source #

Information about a document attribute. You can use document attributes as facets.

For example, the document attribute or facet "Department" includes the values "HR", "Engineering", and "Accounting". You can display these values in the search results so that documents can be searched by department.

You can display up to 10 facet values per facet for a query. If you want to increase this limit, contact Support.

See: newFacet smart constructor.

Constructors

Facet' 

Fields

  • documentAttributeKey :: Maybe Text

    The unique key for the document attribute.

  • facets :: Maybe [Facet]

    An array of document attributes that are nested facets within a facet.

    For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.

    You can only have one nested facet within a facet. If you want to increase this limit, contact Support.

  • maxResults :: Maybe Natural

    Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.

Instances

Instances details
ToJSON Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Generic Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Associated Types

type Rep Facet :: Type -> Type #

Methods

from :: Facet -> Rep Facet x #

to :: Rep Facet x -> Facet #

Read Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Show Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Methods

showsPrec :: Int -> Facet -> ShowS #

show :: Facet -> String #

showList :: [Facet] -> ShowS #

NFData Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Methods

rnf :: Facet -> () #

Eq Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Methods

(==) :: Facet -> Facet -> Bool #

(/=) :: Facet -> Facet -> Bool #

Hashable Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

Methods

hashWithSalt :: Int -> Facet -> Int #

hash :: Facet -> Int #

type Rep Facet Source # 
Instance details

Defined in Amazonka.Kendra.Types.Facet

type Rep Facet = D1 ('MetaData "Facet" "Amazonka.Kendra.Types.Facet" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "Facet'" 'PrefixI 'True) (S1 ('MetaSel ('Just "documentAttributeKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "facets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Facet])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))

newFacet :: Facet Source #

Create a value of Facet 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:documentAttributeKey:Facet', facet_documentAttributeKey - The unique key for the document attribute.

$sel:facets:Facet', facet_facets - An array of document attributes that are nested facets within a facet.

For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.

You can only have one nested facet within a facet. If you want to increase this limit, contact Support.

$sel:maxResults:Facet', facet_maxResults - Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.

facet_documentAttributeKey :: Lens' Facet (Maybe Text) Source #

The unique key for the document attribute.

facet_facets :: Lens' Facet (Maybe [Facet]) Source #

An array of document attributes that are nested facets within a facet.

For example, the document attribute or facet "Department" includes a value called "Engineering". In addition, the document attribute or facet "SubDepartment" includes the values "Frontend" and "Backend" for documents assigned to "Engineering". You can display nested facets in the search results so that documents can be searched not only by department but also by a sub department within a department. This helps your users further narrow their search.

You can only have one nested facet within a facet. If you want to increase this limit, contact Support.

facet_maxResults :: Lens' Facet (Maybe Natural) Source #

Maximum number of facet values per facet. The default is 10. You can use this to limit the number of facet values to less than 10. If you want to increase the default, contact Support.