SEA-941: Fix nested document facet support