title: How to reference multi fields when adding a document to elasticsearch
body: <p>I created an index in my Elasticsearch server and I'm using .Net client NEST to connect to it. Some of the index properties have multiple fields and I want to fill just the correct field.</p>
  
  <p>I created the class 'document' to this mappaing. but I do not know how to access fields of property.</p>
  
  <p>this is the mapping I have (summarized):</p>
  
  <pre><code>"mappings": {
        "document": {
          "properties": {
  
            "baseUniqueID": {
              "type": "keyword"
            },
            "description": {
              "type": "text",
              "fields": {
                "en": {
                  "type": "text",
                  "analyzer": "english"
                },
                "fa": {
                  "type": "text",
                  "analyzer": "nofapersian"
                },
                "fr": {
                  "type": "text",
                  "analyzer": "french"
                }
              }
            },
            "documentDate": {
              "type": "date"
            },
            "documentType_Id": {
              "type": "keyword"
            },
            "id": {
              "type": "long"
            }
  
          }
        }
      }
  </code></pre>
  
  <p>and the document class:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public class Document : BaseInt32KeyEntity
      {
          public string BaseUniqueID{ get; set; }
  
          public int? Weight { get; set; }
  
          public DateTime DocumentDate { get; set; }
  
          public string Description { get; set; }
  
          public int DocumentType_Id { get; set; }
      }
  }
  </code></pre>
  
  <p>How can I make an object of Document to fill just the field I want (here in this example description.en) and then use IndexDocument to add it to Elasticsearch? something like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>Document doc = new Document();
  doc.Description.en = "This is some description";
  ElasticClient.IndexDocument(doc);
  
  </code></pre>