def _facet_counts(items):
    facets = {}
    for name, data in items:
        facets[name] = FacetResult(name, data)
    return facets
Returns facet counts as dict.
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/__init__.py/_facet_counts