title: Multiple field autocomplete with index type boost
body: <p>What I'm trying to accomplish on a high level is an autocomplete input field which queries both customers and orders on multiple fields, with customers ranking higher for customer name searches.</p>
  
  <p>It seems to me that there are various ways to approach this problem with the tools that elasticsearch provides.</p>
  
  <p>The way that I have approached this is to use <code>multi_match</code> queries with <code>prefix_phrase</code> type in order to get partial queries to work across multiple fields.</p>
  
  <p>For example, "bo" should return back matches for "Bob Smith" as well as "Adam Boss".  I'm indexing fullname as a separate field from firstname and lastname, so that "adam boss" will return a valid prefix match as well.</p>
  
  <p>In addition, I'd like to boost customer results - trying to do that with a <a href="https://stackoverflow.com/questions/19322885/multi-match-boolean-boost"><code>boost</code> param on the multi_match</a>, but that doesn't seem to be working the way I'd expect it to.</p>
  
  <p>What would be a straight forward way to tackle this problem?</p>
  
  <p>One of the challenges I'm facing with the elasticsearch docs is that it's not always clear which properties and features apply to which others.  For example, the <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html" rel="nofollow noreferrer">multi_match documentation</a> doesn't talk about using a custom boost, other than on a field-level.</p>