I am using Solr 8.11.1 and json facets.

My problem is that solrj does not provide a way, in the QueryResponse 
getJsonFacetingResponse, to get the “missing” counts which is a must for me.

My raw response looks like:

facets: {
…
myFacetName: {
 missing: { count: 11 }
  buckets: { … }
}
…
}

While NestableJsonFacet’s BucketBasedJsonFacet is parsing buckets and other 
pieces of my facet correctly, there is no section for “missing” to get that 
count of 11.

The only way I was able to get past this was to copy NestableJsonFacet and 
BucketBasedJsonFacet from the 8.11 source and add a section to 
BucketBasedJsonFacet to actually parse and set the “missing” count value.

This is not ideal though and I would prefer to use solrj as is instead of 
having to customize.

Are there any plans for Solr to fix this, or any open JIRA or fix version? I 
searched but could find no mention of this.

Thanks in advance,
M. Allen

Reply via email to