Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I discussed this with @mollux earlier and I don't think that a result can have a count of NULL. A count of zero is allowed but having "nothing" is invalid as that means that the facet doesn't exist.
We should change that in the documentation of the ResultInterface and Result class.
This should also change default value of $count to 0 instead of NULL.
Comment | File | Size | Author |
---|---|---|---|
#2 | result_count_shouldn_t-2912392-2.patch | 3.01 KB | borisson_ |
Comments
Comment #2
borisson_Comment #3
borisson_Comment #5
pwaterz CreditAttribution: pwaterz commentedDoes this patch allow for showing facets that have a count of 0?
Comment #6
borisson_I don't see why it would make that impossible - this is just about the default value ("NULL", not "0") of the result value object.
Comment #7
pwaterz CreditAttribution: pwaterz commentedBorisson I'm trying to figure out why when I have solr setup to return empty facets why the facet module chooses to not display them. If can create another ticket, if needed. I can do the fix, just need a little guidance.
Comment #8
borisson_Yeah, it's be great if you could create a new support request issue.