title: How to query Elasticsearch to boost by specific field
body: <p>How do you index and query documents containing a custom weight so that you can use that weight to promote specific query results?</p>
  
  <p>I've indexed simple documents with bodies like <code>{"text":"how now brown cow", "weight":2.3}</code>. </p>
  
  <p>Using the Python wrapper, I can easily search these by doing:</p>
  
  <pre><code>es = Elasticsearch()
  results = es.search(
      index='my_index',
      body={
          'query':{
              'query_string':{
                  'query':my_search_terms,
              },
          },
      },
  )
  </code></pre>
  
  <p>However, after reading the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html" rel="nofollow">docs</a>, I can't figure out how to incorporate the weight field so that results are boosted by this value. How would I do this?</p>