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.

enter image description here

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

  1. return same facet , without exclusion
  2. if no filters same.
  3. 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
  4. compare @ client side differences , display accordingly.

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -