title: Boosting an elasticsearch result based on a boolean field value
body: <p>I'm getting a lot of "static" when searching for the correct way to boost a result when a "Boolean" field type is TRUE, most results are talking about boolean searches.</p>
  
  <p><strong>N.B. We're using the php elastica library</strong> but if you can only provide json that's fine, I can manage from that.</p>
  
  <p>I have an index with 5 fields where we have some built in boosting going on as you can see here:</p>
  
  <pre><code>array(
      'article_id' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; FALSE),
      'subject' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE, 'boost' =&gt; 8),
      'summary' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE, 'boost' =&gt; 5),
      'content' =&gt; array('type' =&gt; 'string', 'include_in_all' =&gt; TRUE, 'boost' =&gt; 3),
      'media'  =&gt; array('type' =&gt; 'boolean', 'include_in_all' =&gt; FALSE),
      'pub_date'  =&gt; array('type' =&gt; 'date', 'include_in_all' =&gt; FALSE)
  )
  </code></pre>
  
  <p>I'm also successfully boosting the results at a variety of levels via the <code>pub_date</code> field based on age using the <code>addShould()</code> method on a <code>\Elastica\Query\Bool()</code> query object.</p>
  
  <p>What I would like to do now is boost results further where <code>media</code> is TRUE.</p>
  
  <p>Can someone tell me how to add the appropriate boost for just the <code>media</code> field?</p>