title: Elasticsearch boosting, how to boost per value of matched the sub field in array
body: <p>I have document like this:</p>
  
  <pre><code>{
  "Title" : "test title1",
    "AssocQueries" : [
       {"Term":"title1", "Count" : 50},
       {"Term":"test title1", "Count" : 20},
       {"Term":"this is test title1", "Count" : 10}
    ]
  }
  </code></pre>
  
  <p>The AssocQueries data are from BI system which indicates the counts of clicks on the document from certain query term.</p>
  
  <p>I would like to boost the document per the value of "Count" field whose Term filed exactly match the query term.</p>
  
  <p>Say, if search by "title1", boost with 50, if search by "test title" then boost with 20. The actual boost value could be number calculated from Count value.</p>
  
  <p>Is it doable in Elasticsearch?</p>