wikidb.facet_values

wikidb

facet_values(ctx, field_name) -> values

List a facet field's values with their entry counts

Each item is { value, count }, most used first, with ties broken by value. The list comes from the facet dictionary, which is the only enumeration of an open-ended field's values.