title: Is there a workaround to facet on complex types in Azure Search?
body: <p>I have a Category object that contains CategoryId, CategoryParentId, and CategoryName. The ParentId is meant to allow me to present the Categories in a nested structure.
  In my dream scenario, I would facet on CategoryId, and then be able to access the CategoryParentId and CategoryName attached to each instance the facet returns. But of course, other members of the parent object aren't returned as part of the facet value.</p>
  <p>I have considered indexing the Category objects as a json string instead of a Complex type. This would allow me to facet on the json string and have all the information I need. However, I don't know of a way to then filter on CategoryId, as the CategoryId is not comparable to the entire json string (i.e. 5 will not be equal to {CategoryId : 5, CategoryParentId : 6 ...}).</p>
  <p>Is there any other way I can format my data so that I can access all of the information I need from a facet result while maintaining my ability to filter on those results? Or is there some functionality of facets/indexes I'm missing?</p>
  <p>Thank you so much</p>