Hi, About security, I wonder what are the common configurations. I think we should avoid a complex (but slow, and hard to implement) solution that can solve 100% of all possible _theoretical_ cases, but instead go for a (faster, simpler) solution that covers 99% of all _pratical_ cases.
I am not sure if you are hinting towards one of the proposed approaches with that statement. IMO this simplification suggested by Tommaso makes sense: only if there's at least one item (node) in the (filtered) results which falls under that facet. That would mean that we would not return the counts of the facets, but a facet would be returned if there's at least one item in the results belonging to it Best regards Michael
