if (FALSE) {
aggregator <- FacetAggregator$new()
facets <- aggregator$aggregate(
documents = list(
list(category = "tech", author = "Alice"),
list(category = "science", author = "Bob")
),
facet_fields = c("category", "author")
)
}
Run the code above in your browser using DataLab