title: ElasticSearch -- boosting relevance based on field value
body: <p>Need to find a way in ElasticSearch to boost the relevance of a document based on a particular value of a field.  Specifically, there is a special field in all my documents where the higher the field value is, the more relevant the doc that contains it should be, regardless of the search.</p>
  
  <p>Consider the following document structure:</p>
  
  <pre><code>{
      "_all" : {"enabled" : "true"},
      "properties" : {
          "_id":            {"type" : "string",  "store" : "yes", "index" : "not_analyzed"},
          "first_name":     {"type" : "string",  "store" : "yes", "index" : "yes"},
          "last_name":      {"type" : "string",  "store" : "yes", "index" : "yes"},
          "boosting_field": {"type" : "integer", "store" : "yes", "index" : "yes"}
          }
  }
  </code></pre>
  
  <p>I'd like documents with a higher boosting_field value to be <strong>inherently more relevant</strong> than those with a lower boosting_field value.  This is just a starting point -- the matching between the query and the other fields will also be taken into account in determining the final relevance score of each doc in the search.  But, <strong>all else being equal, the higher the boosting field, the more relevant the document</strong>.  </p>
  
  <p>Anyone have an idea on how to do this?</p>
  
  <p>Thanks a lot!</p>