title: How to boost exact match over multi match in elastic search
body: <p>I am running a following query to boost exact match over multi_match in elastic search. But, not getting the expected results.</p>
  
  <p>My goal is to boost in following order: "java developer" > java AND developer > java OR developer</p>
  
  <p>Can someone help in troubleshooting this? Need to know how do I give boost to match_phrase here and how to add remaining fields in match_phrase</p>
  
  <pre class="lang-json prettyprint-override"><code>"query": {
      "bool": {
        "must": [
          {
            "multi_match": {
              "query": "java developer",
              "fields": [
                "title",
                "content",
                "tags",
                "summary"
              ]
            }
          }
        ],
        "should": [
          {
            "match_phrase": {
              "title": "java developer"
            }
          },
          {
            "multi_match": {
              "query": "java developer",
              "fields": [
                "title",
                "content",
                "tags",
                "summary"
              ],
              "operator": "and",
              "boost": 4
            }
          }
        ]
      }
    }
  </code></pre>
  
  <p>Thanks so much for your help.</p>