title: azure search - model / query complex model types
body: <p>I was trying to find examples about the best approach to model / query complex data types on Azure Search. I could only found two approaches to model described on the following link:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/search/search-howto-complex-data-types" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/search/search-howto-complex-data-types</a></p>
  
  <p>But no samples on how to query for a particular property from the JSON. It seems that this feature is on preview mode at this stage:</p>
  
  <p><a href="https://feedback.azure.com/forums/263029-azure-search/suggestions/6670910-modelling-complex-types-in-indexes" rel="nofollow noreferrer">https://feedback.azure.com/forums/263029-azure-search/suggestions/6670910-modelling-complex-types-in-indexes</a></p>
  
  <p>Let's say I have a complex type that I would like to store into one field on Azure Search:</p>
  
  <pre><code>{
     "name": "Thiago",
     "email": "thiago@thiago.com",
     "subscription": {
        "plan": "A",
        "billType": "month", 
        "tags": ["azure", "mvp", "search"]
     }
  }
  </code></pre>
  
  <p>Let's say I want to filter for documents that contains the tag "azure". Or for those that have the billType "month"</p>