# Class HistogramQueryResult (2.21.0)

2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.2 2.16.0 2.15.0 2.14.1 2.13.5 2.12.0 2.11.1 2.10.1 2.9.1 2.8.0 2.7.3 2.6.0 2.5.2 2.4.0 2.3.0 2.2.1 2.1.0 2.0.0 1.0.2 0.6.3 0.5.0 0.4.0 0.3.0

    HistogramQueryResult(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Histogram result that matches
HistogramQuery specified in
searches.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `histogram_query` | `str` Requested histogram expression. |
| `histogram` | `MutableMapping[str, int]` A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is: - (for string histogram) string values stored in the field. - (for named numeric bucket) name specified in `bucket()` function, like for `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. - (for anonymous numeric bucket) range formatted as , for example, `0-1000`, `MIN-0`, and `0-MAX`. |

## Classes

### HistogramEntry

    HistogramEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `kwargs` | `dict` Keys and values corresponding to the fields of the message. |
| `mapping` | ``Union[dict, `.Message`]`` A dictionary or message to be used to determine the values for this message. |
| `ignore_unknown_fields` | `Optional(bool)` If True, do not raise errors for unknown fields. Only applied if `mapping` is a mapping type or there are keyword parameters. |