title: Elasticsearch case-insensitive query_string query with wildcards
body: <p>In my ES mapping I have an 'uri' field which is currently set to not_analysed and I'm not allowed to change the mapping.I wanted to search for uri parts with a query_string query like this (this ES query is autogenerated, that is why it is a bit complicated but let's just focus on the query_string part)</p>
  
  <pre><code>{
    "sort": [{"updated": {"order": "desc"}}], 
     "query": {
       "bool": {
         "must":[{
           "query_string": {
             "query":"*w3\\.org\\/2014\\/01\\/a*", 
             "lowercase_expanded_terms": true, 
             "default_field": "uri"
           }
         }], 
         "minimum_number_should_match": 1
       }
     }, "size": 50}
  </code></pre>
  
  <p>Now it is usually working, but I've the following url stored (fictional url): <a href="http://w3.org/2014/01/Abc.html" rel="nofollow">http://w3.org/2014/01/Abc.html</a> and this query does not bring it back because of the A-a difference. Setting the expanded terms to false also not solves this. What should I do for this query to be case insensitive?</p>
  
  <p>Thanks for the help in advance.</p>