title: Using Enums in Azure Search Documents
body: <p>It was my understanding that if you have an enum in a search document, it would be converted to an int.  Unless I am doing something wrong, this does not seem to be happening and the only way I can get this to work is by converting the enum to a string.  This seems wrong.  Can someone tell me if I have done something wrong or if this is just not possible?</p>
  
  <p>Example:</p>
  
  <pre><code>public enum WebSearchRecordType{
      Unknown = 0,
      Doc1 = 1,
      Doc2 = 2
  }
  
  public class WebSearchDocument{
      public Guid Id {get;set;}
      public WebSearchRecordType RecordType { get; set; }
  }
  </code></pre>
  
  <p>If I use something like the above while trying to create the index, I get the following error:  </p>
  
  <blockquote>
    <p>Message: "Property recordType has unsupported type
    Web.Search.WebSearchRecordType\r\nParameter name: propertyType"</p>
  </blockquote>