title: Unable to update phone number using elastic search query, getting mapper_parsing_exception
body: <p>I am trying to update the phone number using the below query, but I am getting &quot;mapper_parsing_exception. Refer the code attached below.</p>
  <p><strong>Query:</strong></p>
  <pre><code>POST /ps/_update/alOKenkBHofR-Ip1hPcv
  {
    &quot;doc&quot;: {
      &quot;ph&quot;: {
        &quot;na&quot;: null,
        &quot;nu&quot;: &quot;877842376&quot;,
        &quot;cc&quot;: &quot;91&quot;,
        &quot;ex&quot;: null,
        &quot;pt&quot;: &quot;M&quot;
      },
      &quot;mdt&quot;: &quot;20210615T044700.714Z&quot;
    }
  </code></pre>
  <p><strong>Response:</strong></p>
  <pre><code>{
    &quot;error&quot; : {
      &quot;root_cause&quot; : [
        {
          &quot;type&quot; : &quot;mapper_parsing_exception&quot;,
          &quot;reason&quot; : &quot;failed to parse field [ph] of type [text] in document with id 'alOKenkBHofR-Ip1hPcv'. Preview of field's value: '{cc=91, na=null, ex=null, pt=M, nu=877842376}'&quot;
        }
      ],
      &quot;type&quot; : &quot;mapper_parsing_exception&quot;,
      &quot;reason&quot; : &quot;failed to parse field [ph] of type [text] in document with id 'alOKenkBHofR-Ip1hPcv'. Preview of field's value: '{cc=91, na=null, ex=null, pt=M, nu=877842376}'&quot;,
      &quot;caused_by&quot; : {
        &quot;type&quot; : &quot;illegal_state_exception&quot;,
        &quot;reason&quot; : &quot;Can't get text on a START_OBJECT at 1:3558&quot;
      }
    },
    &quot;status&quot; : 400
  }
  </code></pre>
  <p>// code</p>
  <pre><code> Document document = Document.create();
              Map&lt;String, Object&gt; map = new Phone.ToMap().convert((Phone) value);
              document.put(key, map);
  
          UpdateQuery updateQuery = UpdateQuery.builder(id).withDocument(document).build();
          UpdateResponse updateResponse = operations.update(updateQuery, indexCoordinates());
          Result result = updateResponse.getResult();
  </code></pre>