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 DocumentAttributeValueCountPair = DocumentAttributeValueCountPair' {}
- newDocumentAttributeValueCountPair :: DocumentAttributeValueCountPair
- documentAttributeValueCountPair_count :: Lens' DocumentAttributeValueCountPair (Maybe Int)
- documentAttributeValueCountPair_documentAttributeValue :: Lens' DocumentAttributeValueCountPair (Maybe DocumentAttributeValue)
- documentAttributeValueCountPair_facetResults :: Lens' DocumentAttributeValueCountPair (Maybe [FacetResult])
Documentation
data DocumentAttributeValueCountPair Source #
Provides the count of documents that match a particular attribute when doing a faceted search.
See: newDocumentAttributeValueCountPair
smart constructor.
DocumentAttributeValueCountPair' | |
|
Instances
newDocumentAttributeValueCountPair :: DocumentAttributeValueCountPair Source #
Create a value of DocumentAttributeValueCountPair
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:count:DocumentAttributeValueCountPair'
, documentAttributeValueCountPair_count
- The number of documents in the response that have the attribute value
for the key.
$sel:documentAttributeValue:DocumentAttributeValueCountPair'
, documentAttributeValueCountPair_documentAttributeValue
- The value of the attribute. For example, "HR".
$sel:facetResults:DocumentAttributeValueCountPair'
, documentAttributeValueCountPair_facetResults
- Contains the results of a document attribute that is a nested facet. A
FacetResult
contains the counts for each facet nested 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. The counts for documents that belong to "Frontend" and "Backend" within "Engineering" are returned for a query.
documentAttributeValueCountPair_count :: Lens' DocumentAttributeValueCountPair (Maybe Int) Source #
The number of documents in the response that have the attribute value for the key.
documentAttributeValueCountPair_documentAttributeValue :: Lens' DocumentAttributeValueCountPair (Maybe DocumentAttributeValue) Source #
The value of the attribute. For example, "HR".
documentAttributeValueCountPair_facetResults :: Lens' DocumentAttributeValueCountPair (Maybe [FacetResult]) Source #
Contains the results of a document attribute that is a nested facet. A
FacetResult
contains the counts for each facet nested 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. The counts for documents that belong to "Frontend" and "Backend" within "Engineering" are returned for a query.