solrj - Offer facets with zero count for certain category with min count set to one using Solr -
i have integrated solr 4 e-commerce application. , offers facet filters flipkart on category pages. filters works fine, however, facets has min count set 1, facets 0 count not returned solr.
now, want display 0 count displayed here in image.

however, in image, screen size can present in other category well, in case instead of displaying options presents category displays options no applicable current category.
so, lists facets 0 if have nothing category. problem want display facets available if there no filters applied , display them greyed out when no longer applicable.
any clue how this?
one thing can try getting facets , without filter within same query.
check multi-select_faceting_and_localparams
- return same facet , without exclusion
- if no filters same.
- if filter applied, normal facet have filtered facets , exclusion facet have facets without filter.
fq={!tag=dt}doctype:pdf&facet=on&facet.field={!ex=dt}doctype&facet.field=doctype - compare @ client side differences , display accordingly.
Comments
Post a Comment