title: Convert elastic search query into Elasticsearch-dsl in python
body: <p>This is a simple working elastic search query. I have to convert this into a python code using elastic search dsl module.   </p>
  
  <pre><code> GET indexforproject/project/_search
    {
      "query": {
        "filtered": {
          "query": {"match_all": {}},
          "filter": {
            "term": {
              "project_language.languageName.raw": "nodejs"
            }
          }
        }
      }
    }
  </code></pre>
  
  <p>This is what i used</p>
  
  <pre><code>from elasticsearch import Elasticsearch
      from elasticsearch_dsl import Search,Q,query,F
      client = Elasticsearch([{'host':'blrkec248770d','port':'9200'}])
      temp="Internal"
      s=Search(using=client, index="indexforproject").filter("term","project_language.languageName.raw"="Internal")
      body={
      'query':"PHP and node.js",  
      'filters':[{'name':"languages",'values':"[python,PHP,angular]"}   ]
      }
  
  
      response=s.execute()
      for hit in response:
          print hit.title
  </code></pre>