title: Elasticsearch FunctionScore query using Java API
body: <p>I need to implement the below function_score query using Java APIs. I couldn't find any official documentation for function_score query in the Java API section of elasticsearch</p>
  
  <pre><code>"function_score": {
      "functions": [
          {
              "boost_factor": "3",
              "filter": {
                   "terms" : {"course_cd" : ["writ100", "writ112", "writ113"] }   
              }
          }
      ],
      "query": {
            "match" : {
                 "party_id" : "12"
            }
       }
  }
  </code></pre>
  
  <p>Please help!</p>