title: Elasticsearch mapping - Different types of data in same field
body: <p>I am trying to create a mapping for my Elasticsearch that would make me insert an both an object and a string into my field &quot;value&quot;. The following shows the data I want inserted:</p>
  <pre><code>  {
      &quot;Data&quot;: [{
              &quot;key&quot;: &quot;keyName&quot;,
              &quot;value&quot;: &quot;valueName&quot;
          },
          {
              &quot;key&quot;: &quot;keyName&quot;,
              &quot;value&quot;: &quot;valueName&quot;
          },
          {
              &quot;key&quot;: &quot;keyName&quot;,
              &quot;value&quot;: [{
                  &quot;type&quot;: &quot;FailedName&quot;,
                  &quot;message&quot;: &quot;FailedMessage&quot;,
                  &quot;path&quot;: &quot;FailedPath&quot;
              }]
          }
      ]
    }
  </code></pre>
  <p>Would it be possible for me to have two types of data in the same field?
  I am running Elasticsearch version 7.3.1.</p>