title: Using wildcards in phrases with Elasticsearch Query String Query
body: <p>Using the wildcard operator, I can match terms starting with some value:</p>
  
  <pre><code>{
      "query": {
          "query_string" : {
              "query" : "subject:cell*"
          }
      }
  }
  </code></pre>
  
  <p>The <code>subject</code> field here is a <code>keyword</code> field (non-analyzed). This works fine, but I cannot figure out how to find terms starting with, say, "cellular contr". Trying double quotes did not yield the expected results:</p>
  
  <pre><code>{
      "query": {
          "query_string" : {
              "query" : "subject:\"cellular contr*\""
          }
      }
  }
  </code></pre>
  
  <p>Note: phrase search works fine with exact matches, just not with the wildcard. My guess is that the star is not interpreted as a wildcard operator inside the double quotes. Is that correct? And is there any other way to use the wildcard operator with a phrase?</p>
  
  <p>Note: I have to use <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-dsl-query-string-query" rel="noreferrer">Query String Query</a>, since the query is coming from user input.</p>
  
  <p>(I know I could resort to regexp, but would prefer not to)</p>