Interface TotalHits.Builder

    • Method Detail

      • value

        TotalHits.Builder value​(Long value)

        The total number of matching results. This value may be exact or an estimate, depending on the Relation field.

        Parameters:
        value - The total number of matching results. This value may be exact or an estimate, depending on the Relation field.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relation

        TotalHits.Builder relation​(String relation)

        Indicates the relationship between the returned Value and the actual total number of matching results. Possible values are:

        • EqualTo: The Value is the exact count of matching results.

        • GreaterThanOrEqualTo: The Value is a lower bound of the actual count of matching results.

        Parameters:
        relation - Indicates the relationship between the returned Value and the actual total number of matching results. Possible values are:

        • EqualTo: The Value is the exact count of matching results.

        • GreaterThanOrEqualTo: The Value is a lower bound of the actual count of matching results.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Relation, Relation
      • relation

        TotalHits.Builder relation​(Relation relation)

        Indicates the relationship between the returned Value and the actual total number of matching results. Possible values are:

        • EqualTo: The Value is the exact count of matching results.

        • GreaterThanOrEqualTo: The Value is a lower bound of the actual count of matching results.

        Parameters:
        relation - Indicates the relationship between the returned Value and the actual total number of matching results. Possible values are:

        • EqualTo: The Value is the exact count of matching results.

        • GreaterThanOrEqualTo: The Value is a lower bound of the actual count of matching results.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        Relation, Relation