Skip to content

Conversation

@PouyaMohseni
Copy link
Contributor

@PouyaMohseni PouyaMohseni commented Nov 18, 2025

  • put all_facets[value]["count"] = 0 to when there is no contextual facet data to show zero when query does not match
  • in index.html show count if it is more than zero

resolved #414

@PouyaMohseni PouyaMohseni reopened this Dec 7, 2025
- put `all_facets[value]["count"] = 0` to when there is no contextual facet data to show zero when query does not match
- in `index.html` show count if it is more than zero

resolved #414
@ahankinson
Copy link
Member

Can’t you just set facet.mincount=1 in your Solr request? Or am I missing something?

@PouyaMohseni
Copy link
Contributor Author

I believe we need the other facets to be shown, especially now that we decided not to use tagged queries.

@PouyaMohseni PouyaMohseni changed the title fix: solr facet counts dropping to zero when one facet is selected fix: do not show facet counts if it is zero Dec 17, 2025
@PouyaMohseni PouyaMohseni requested review from yinanazhou and removed request for yinanazhou December 17, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Facet counts drop to zero when one facet is selected -- Solr

3 participants