PR feat/2282-facet-counts — pick a category and watch the OTHER pills' counts. The fix keeps them stable; the old behavior collapsed them to 0.
Behavior
Category pills (click to select)
selected = active where filterred = collapsed/misleading count
Why
Orama computes facets afterwhere. With where:{category:[selected]}, the category facet collapses to only the selected value — so unselected pills would read 0 (misleading). The fix sources counts from a second query that excludes the facet field from where (keeping other filters like plugins), and skips that extra query entirely when no category is selected — preserving the cheap path. See lib/orama-browser.tsquery().