Interface FacetResult.Builder

    • Method Detail

      • documentAttributeKey

        FacetResult.Builder documentAttributeKey​(String documentAttributeKey)

        The key for the facet values. This is the same as the DocumentAttributeKey provided in the query.

        Parameters:
        documentAttributeKey - The key for the facet values. This is the same as the DocumentAttributeKey provided in the query.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentAttributeValueType

        FacetResult.Builder documentAttributeValueType​(String documentAttributeValueType)

        The data type of the facet value. This is the same as the type defined for the index field when it was created.

        Parameters:
        documentAttributeValueType - The data type of the facet value. This is the same as the type defined for the index field when it was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DocumentAttributeValueType, DocumentAttributeValueType
      • documentAttributeValueType

        FacetResult.Builder documentAttributeValueType​(DocumentAttributeValueType documentAttributeValueType)

        The data type of the facet value. This is the same as the type defined for the index field when it was created.

        Parameters:
        documentAttributeValueType - The data type of the facet value. This is the same as the type defined for the index field when it was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DocumentAttributeValueType, DocumentAttributeValueType
      • documentAttributeValueCountPairs

        FacetResult.Builder documentAttributeValueCountPairs​(Collection<DocumentAttributeValueCountPair> 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • documentAttributeValueCountPairs

        FacetResult.Builder documentAttributeValueCountPairs​(DocumentAttributeValueCountPair... 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.

        Parameters:
        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.
        Returns:
        Returns a reference to this object so that method calls can be chained together.