title: Not able to Query alphanumeric fields from ELASTIC SEARCH using TERMS QUERY
body: <p>I am trying to query Alphanumeric values from the index using TERMS QUERY, But it is not giving me the output.</p>
  
  <p>Query: </p>
  
  <pre><code>{
    "size" : 10000,
    "query" : {
      "bool" : {
        "must" : {
          "terms" : {
            "caid" : [ "A100945","A100896" ]
          }
        }
      }
    },
    "fields" : [ "acco", "bOS", "aid", "TTl", "caid" ]
  }
  </code></pre>
  
  <p>I want to get all the entries that has caid  A100945 or A100896</p>
  
  <p>The same query works fine for NUmeric fields.</p>
  
  <p>I am not planning to use QueryString/MatchQuery as i am trying to build general query builder that can build query for all the request. Hence am looking to get the entries usinng TERMS Query only.</p>
  
  <p>Note: I am using Java API org.elasticsearch.index.query.QueryBuilders for building the Query.</p>
  
  <p>eg: QueryBuilders.termQuery("caid", "["A10xxx", "A101xxx"]")</p>
  
  <p>Please help.</p>
  
  <p>Regards,
  Mik</p>