Configuring hierarchical facets

Hi all,

is there a way to define a hierarchical facet-structure for documents? I.e. facet with sub-facets.
If this is not possible OOTB, is there a recommended way for extending the current facet-logic?

Thank you!