(
facet_counts: dict[str, list],
)
| 285 | |
| 286 | |
| 287 | def process_facet_counts( |
| 288 | facet_counts: dict[str, list], |
| 289 | ) -> dict[str, tuple[str, str, int]]: |
| 290 | for field, facets in facet_counts.items(): |
| 291 | if field == "author_facet": |
| 292 | field = "author_key" |
| 293 | yield field, list(process_facet(field, web.group(facets, 2))) |
| 294 | |
| 295 | |
| 296 | async def execute_solr_query_async( |
no test coverage detected