title: Match each keyword at least once
body: <p>I'm  trying to configure the scoring logic in Apache Solr 4.10.
  I want to maximize the number of DISTINCT keywords matched.
  In other words, each keyword should be matched at least once.
  For example, this is what I'm currently seeing:</p>
  
  <pre><code>q=foo+bar+baz
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>doc1: foo foo foo foo foo foo foo
  doc2: foo bar bar bar 
  doc3: foo bar baz
  </code></pre>
  
  <p>This is not what I want. I want doc3 to appear at the top (since all keywords are matched), then doc2, then doc1. I tried setting mm=100% but then ONLY doc3 is returned and doc1 and doc2 are not displayed at all.
  Any ideas?</p>