cfpb / ccdb5-api

An API that provides an interface to search complaint data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

State Aggregations seem to be cut off

JeffreyMFarley opened this issue · comments

When I search with state=WY, I get 166 matches, but aggregations.state does not list WY as one of the buckets.

Is this aggregation being limited? Notice sum_other_doc_count

  "aggregations": {
    ... snip ...
    "state": {
      "doc_count": 166148,
      "state": {
        "buckets": [
          {
            "doc_count": 23505,
            "key": "CA"
          },
          {
            "doc_count": 15105,
            "key": "FL"
          },
          {
            "doc_count": 14685,
            "key": "TX"
          },
          ... snip ...
          {
            "doc_count": 245,
            "key": "SD"
          },
          {
            "doc_count": 204,
            "key": "VT"
          },
          {
            "doc_count": 193,
            "key": "ND"
          }
        ],
        "doc_count_error_upper_bound": 0,
        "sum_other_doc_count": 597
      }
    },