title: How to search multiple fields and calculate each word match once, without duplicate?
body: <p>I am trying to configure Elasticsearch on external data and I am having some problem,
  My data looks like so:</p>
  <pre><code>name: 'foo'
  category: 'indie movie'
  
  name: 'foo 2'
  category: 'foo 2'
  </code></pre>
  <p>So now if I do the following query on the word &quot;foo&quot; in both matches</p>
  <pre><code>must match name
  should match category
  </code></pre>
  <p>Would return &quot;foo 2&quot; first, because it will get higher score (since &quot;foo&quot; appears in both name and cateogry).</p>
  <p>An alternative I found would be to do &quot;mult_match&quot; queue, with cross_field but then if I will have a 3rd document:</p>
  <pre><code>name: batz
  category: super action movie
  </code></pre>
  <p>And someone will search for &quot;foo super action movie&quot; then batz will be the first result.</p>
  <p>Is there a way to retreive &quot;foo&quot; first for both &quot;foo super action movie&quot; and &quot;foo&quot;?</p>