title: Using filter beside query_string in Elastic Search
body: <p>How to full text search and have filter? I want to search for a text among documents with <code>language_id=10</code>. I've tried it this way:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
    "query": {
      "query_string": {
        "query": "Declared"
      },
      {
        "filtered": {
          "filter": {
            "term": {
              "language_id": 10
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>but seems like it's not correct. How to correct it?</p>