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 |
Synopsis
- data FacetResult = FacetResult' {}
- newFacetResult :: FacetResult
- facetResult_documentAttributeKey :: Lens' FacetResult (Maybe Text)
- facetResult_documentAttributeValueCountPairs :: Lens' FacetResult (Maybe [DocumentAttributeValueCountPair])
- facetResult_documentAttributeValueType :: Lens' FacetResult (Maybe DocumentAttributeValueType)
Documentation
data FacetResult Source #
The facet values for the documents in the response.
See: newFacetResult
smart constructor.
FacetResult' | |
|
Instances
newFacetResult :: FacetResult Source #
Create a value of FacetResult
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:FacetResult'
, facetResult_documentAttributeKey
- The key for the facet values. This is the same as the
DocumentAttributeKey
provided in the query.
$sel:documentAttributeValueCountPairs:FacetResult'
, facetResult_documentAttributeValueCountPairs
- An array of key/value pairs, where the key is the value of the
attribute and the count is the number of documents that share the key
value.
$sel:documentAttributeValueType:FacetResult'
, facetResult_documentAttributeValueType
- The data type of the facet value. This is the same as the type defined
for the index field when it was created.
facetResult_documentAttributeKey :: Lens' FacetResult (Maybe Text) Source #
The key for the facet values. This is the same as the
DocumentAttributeKey
provided in the query.
facetResult_documentAttributeValueCountPairs :: Lens' FacetResult (Maybe [DocumentAttributeValueCountPair]) Source #
An array of key/value pairs, where the key is the value of the attribute and the count is the number of documents that share the key value.
facetResult_documentAttributeValueType :: Lens' FacetResult (Maybe DocumentAttributeValueType) Source #
The data type of the facet value. This is the same as the type defined for the index field when it was created.