Hierarchical Category Facets Now Show the Largest Categories First

· Search · Bug Fix · All updates

The hierarchical category facet on hosted search pages listed its first fifty values alphabetically instead of by size. Every level of the hierarchy is now sorted by document count, so the drill-down opens with the categories that hold the most content.

01 What you saw

A facet configured as a hierarchy asks Solr for a pivot across the category levels. The page-wide sort order for facets is alphabetical, because the language and locale lists read best that way, and the pivot inherited it. Alphabetically, the first fifty values on a news site are article headlines that begin with digits: fifty entries, one document each, no sub-categories, while News, Sports and Weather never made the list.

Before 01-15-2026 Peru Community School…1 1 dead, 1 injured in near westside…1 1 dead, 2 hurt after shooting on…1 1 dead, 3 injured in east side mass…1 1 dead, 5 hurt after shooting at…1 … 45 more, one document each After News2,888 Podcast Episode1,881 Photo Gallery1,164 Sports1,096 Indianapolis Colts · Indiana Fever · … Weather 383 · Lifestyle 340 · …
The same index, the same facet: alphabetical order surfaced fifty one-off headlines; count order surfaces the sections and their sub-categories.

02 What changed

  • Every level of a hierarchical facet is sorted by count. The top level opens with the biggest categories, and each drill-down step does the same.
  • Language and locale facets keep their alphabetical order. The change is scoped to the hierarchy fields only.
  • Nothing to configure. Any index with a Hierarchical widget in Facet Filter Mapping gets it on the next search.
View the full changelog