title: Update "keyword" to "text" field type of an index for inexact words matching in elasticsearch
body: <pre><code>{
          &quot;myindex&quot;: {
              &quot;mappings&quot;: {
                  &quot;properties&quot;: {
                      &quot;city&quot;: {
                          &quot;type&quot;: &quot;text&quot;,
                          &quot;fields&quot;: {
                              &quot;keyword&quot;: {
                                  &quot;type&quot;: &quot;keyword&quot;,
                                  &quot;ignore_above&quot;: 256
                              }
                          }
                      }
                  }
              }
          }
      }
  </code></pre>
  <p>I tried to update by using below PUT request on the index, but still getting the above ouput of _mapping</p>
  <pre><code>{
          &quot;_doc&quot; : {
              &quot;properties&quot; : {
                  &quot;city&quot; : {&quot;type&quot; : &quot;text&quot;}
              }
          }
      }
  </code></pre>
  <p>I am not able to query with inexact words because its type is &quot;keyword&quot;, for the below the actual value in record is &quot;Mumbai&quot;</p>
  <pre><code>{
      &quot;query&quot;: {
          &quot;bool&quot;: {
              &quot;must&quot;: {
                  &quot;match&quot;: {
                      &quot;city&quot;: {
                          &quot;query&quot;: &quot;Mumbi&quot;,
                          &quot;minimum_should_match&quot;: &quot;10%&quot;
                      }
                  }
              }
          }
      }
  }
  </code></pre>