public static interface DocumentAttributeValueCountPair.Builder extends SdkPojo, CopyableBuilder<DocumentAttributeValueCountPair.Builder,DocumentAttributeValueCountPair>
| Modifier and Type | Method and Description |
|---|---|
DocumentAttributeValueCountPair.Builder |
count(Integer count)
The number of documents in the response that have the attribute/field value for the key.
|
default DocumentAttributeValueCountPair.Builder |
documentAttributeValue(Consumer<DocumentAttributeValue.Builder> documentAttributeValue)
The value of the attribute/field.
|
DocumentAttributeValueCountPair.Builder |
documentAttributeValue(DocumentAttributeValue documentAttributeValue)
The value of the attribute/field.
|
DocumentAttributeValueCountPair.Builder |
facetResults(Collection<FacetResult> facetResults)
Contains the results of a document attribute/field that is a nested facet.
|
DocumentAttributeValueCountPair.Builder |
facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the results of a document attribute/field that is a nested facet.
|
DocumentAttributeValueCountPair.Builder |
facetResults(FacetResult... facetResults)
Contains the results of a document attribute/field that is a nested facet.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildDocumentAttributeValueCountPair.Builder documentAttributeValue(DocumentAttributeValue documentAttributeValue)
The value of the attribute/field. For example, "HR".
documentAttributeValue - The value of the attribute/field. For example, "HR".default DocumentAttributeValueCountPair.Builder documentAttributeValue(Consumer<DocumentAttributeValue.Builder> documentAttributeValue)
The value of the attribute/field. For example, "HR".
This is a convenience method that creates an instance of theDocumentAttributeValue.Builder avoiding
the need to create one manually via DocumentAttributeValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to documentAttributeValue(DocumentAttributeValue).
documentAttributeValue - a consumer that will call methods on DocumentAttributeValue.BuilderdocumentAttributeValue(DocumentAttributeValue)DocumentAttributeValueCountPair.Builder count(Integer count)
The number of documents in the response that have the attribute/field value for the key.
count - The number of documents in the response that have the attribute/field value for the key.DocumentAttributeValueCountPair.Builder facetResults(Collection<FacetResult> facetResults)
Contains the results of a document attribute/field 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.
facetResults - Contains the results of a document attribute/field 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.Builder facetResults(FacetResult... facetResults)
Contains the results of a document attribute/field 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.
facetResults - Contains the results of a document attribute/field 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.Builder facetResults(Consumer<FacetResult.Builder>... facetResults)
Contains the results of a document attribute/field 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.
This is a convenience method that creates an instance of theFacetResult.Builder avoiding the need to create one
manually via FacetResult.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #facetResults(List.
facetResults - a consumer that will call methods on
FacetResult.Builder#facetResults(java.util.Collection) Copyright © 2023. All rights reserved.