title: Elasticsearch Query: Boosting specific field
body: <p>I am using Elasticsearch 2.4.3 and want to boost specific fields in my query. Is this possible? I only see how I can boost an index.</p>
  
  <p>Greetings!</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>Mapping:</p>
  
  <pre><code>"firstName":{"type":"string",
       "analyzer":"customNGram"
  },
  "lastName":{
       "type":"string",
       "analyzer":"customNGram"
  },
  "note":{
       "type":"string",
       "analyzer":"customNGram"
  }
  </code></pre>
  
  <p>Query (Java API):</p>
  
  <pre><code>    QueryBuilder qb = new BoolQueryBuilder()
          .must(QueryBuilders.matchQuery("_all", term)
                  .analyzer("atsCustomSearchAnalyzer")
                  .operator(Operator.AND));
  
      SearchRequestBuilder searchRequestBuilder = elasticsearchClient.prepareSearch("persons", "activities").setTypes("person", "activity")
              .setQuery(qb)
              .addHighlightedField("*").setHighlighterRequireFieldMatch(false)
              .setHighlighterOrder("score")
              .setHighlighterFragmentSize(150)
              .setHighlighterForceSource(true)
              .setSize(100)
              .addIndexBoost("persons", 200)
              .setFrom(offset); 
  
      return searchRequestBuilder.execute().get();
  </code></pre>