title: Using Elastic Query DSL in Kibana Discover to enable more_like_this etc
body: <p>The Kibana documentation says:</p>
  
  <blockquote>
    <p>When lucene is selected as your query language you can also submit
    queries using the Elasticsearch Query DSL.</p>
  </blockquote>
  
  <p>However, whenever I try to enter such a query in the Discover pane, I get a parse error.  These are queries that work fine in the Dev Tools pane.  </p>
  
  <p>For example, if I try even a simple query like this:</p>
  
  <pre><code>{"query":{"match_phrase":{"summary":"stochastic noise"}}}
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Discover: [parsing_exception] no [query] registered for [query], with { line=1 &amp; col=356 }    
  
  Error: [parsing_exception] no [query] registered for [query], with { line=1 &amp; col=356 }
      at respond (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:111:161556)
      at checkRespForFailure (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:111:160796)
      at http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:105:285566
      at processQueue (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:132456)
      at http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:133349
      at Scope.$digest (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:144239)
      at Scope.$apply (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:147018)
      at done (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:100026)
      at completeRequest (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:104697)
      at XMLHttpRequest.xhr.onload (http://&lt;mydomain&gt;:5601/bundles/vendors.bundle.js?v=16602:58:105435)
  </code></pre>
  
  <p>(I've removed my domain above and replaced with <code>&lt;mydomain&gt;</code>)</p>
  
  <p>The above query works fine and returns results using cURL on the command line, or using </p>
  
  <pre><code>GET /_search
  {
    "query": {
      "match_phrase": {
        "summary": "stochastic noise"
      }
    }
  }
  </code></pre>
  
  <p>In the Dev Tools console.  </p>
  
  <p>I'm hoping to use the <code>more_like_this</code> query from the Discover panel, so (I think) I will need to use the Query DSL and not just use the straight lucene query syntax.  But if there's a way to use the specialty queries like that using straight lucene (or kuery) that would be great. </p>