wikidb.browse_facet

wikidb

browse_facet(ctx, field_name, value, opts) -> records, total

List the entries carrying one value of a facet field

The list runs newest first, and opts.order = "asc" turns it round. opts.offset and opts.limit (default 25) page through the set, and total counts the whole set. Each record has the { member, score } shape of a sorted-set range: the entry key and its updated time.

A context without a meta keyspace answers {} and no total.