title: How do I boost a result based on a static value in ElasticSearch?
body: <p>How can I boost results based on their document type?</p>
  <p>We're using ElasticSearch to power the search feature on a website. My client has asked if their Products and Services pages can bubble up to the top of the results, but not in a totally artificial way.</p>
  <p>For example, say the results as they stand right now were:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Result</th>
  <th>Score</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>News Article 1</td>
  <td>99</td>
  </tr>
  <tr>
  <td>News Article 2</td>
  <td>80</td>
  </tr>
  <tr>
  <td>News Article 3</td>
  <td>70</td>
  </tr>
  <tr>
  <td>Service 1</td>
  <td>60</td>
  </tr>
  <tr>
  <td>News Article 4</td>
  <td>50</td>
  </tr>
  <tr>
  <td>Product 2</td>
  <td>40</td>
  </tr>
  <tr>
  <td>News Article 5</td>
  <td>30</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Maybe we give Products and Services a 25 point boost so the results would come out in a semi-organic manner, like so.</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Result</th>
  <th>Score</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>News Article 1</td>
  <td>99</td>
  </tr>
  <tr>
  <td>Service 1</td>
  <td>85</td>
  </tr>
  <tr>
  <td>News Article 2</td>
  <td>80</td>
  </tr>
  <tr>
  <td>News Article 3</td>
  <td>70</td>
  </tr>
  <tr>
  <td>Product 2</td>
  <td>65</td>
  </tr>
  <tr>
  <td>News Article 4</td>
  <td>50</td>
  </tr>
  <tr>
  <td>News Article 5</td>
  <td>30</td>
  </tr>
  </tbody>
  </table>
  </div>