title: Azure Search - Hierarchical facets guidance
body: <p>I'm developing a project where I want to have hierarchical facets.
  I have an index with a complex structure, like:
  Index
  -field1
  -List
  And othercomplexfield contains another list with anothercomplexfield inside.</p>
  <p>I'd like to be able to give to users the possibility to:</p>
  <p>Have the facets of field1.
  When one is selected, I'd like to give the user the possibility to select one of the values of a certain field of &quot;othercomplexfield&quot; while filtering by the selected field1.</p>
  <p>I can do that.</p>
  <p>I'd then like to give the user the possibility to select one of the possible values of &quot;anothercomplexfield&quot; while filtering by field1 AND by the selected othercomplexfield.</p>
  <p>The difficulty here is that I don't want every possible facet value, but only the ones CONTAINED by the othercomplexfield that I'm filtering for.</p>
  <p>So far I had to do this inside of c# and i did not find a way to write a query that gives me back from azure search the distinct values that I want.</p>
  <p>Someone has a similar problem?
  Did I explain the problem well enough?
  I saw no clear guidance online, everything is easy if you only have level 1 facets but when you get into nested objects it's not that clear anymore.</p>