Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
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.
Facet' | |
|
Instances
ToJSON Facet Source # | |
Defined in Amazonka.Kendra.Types.Facet | |
Generic Facet Source # | |
Read Facet Source # | |
Show Facet Source # | |
NFData Facet Source # | |
Defined in Amazonka.Kendra.Types.Facet | |
Eq Facet Source # | |
Hashable Facet Source # | |
Defined in Amazonka.Kendra.Types.Facet | |
type Rep Facet Source # | |
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))))) |
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.