$facet builds a hierarchical bucket tree from FACET field paths.
Use it for category navigation and drill-down style faceting.
Compatibility
Arguments
- TypeScript
- Python
- Redis CLI
Output
- Increase
depthfor multi-level facet trees. - Use
sizeandminDocCountto control noise and response size. - Use
orderto sort by count or by path.
- TypeScript
- Python
- Redis CLI
depth: 2, the response includes nested children:
$facetcannot contain$aggs.$facetcannot be used as a sub-aggregation inside another$aggsblock.