def get_doctype_stats(index):
    stats = {}

    from kitsune.search.models import get_mapping_types
    for cls in get_mapping_types():
        if cls.get_index() == index:
            # Note: Can't use cls.search() here since that returns a
            # Sphilastic which is hard-coded to look only at the
            # read index..
            s = S(cls).indexes(index)
            stats[cls.get_mapping_type_name()] = s.count()

    return stats
FAIL: test_manager_get_settings_new_initial (tests.configuration.tests.ModelTests)
dataset/ETHPy150Open mozilla/kitsune/kitsune/search/es_utils.py/get_doctype_stats--crossover with--dataset/ETHPy150Open django-bmf/django-bmf/tests/configuration/tests.py/ModelTests.test_manager_get_settings_new_initial