title: Understanding Apache Lucene's scoring algorithm
body: <p>I'm working with Hibernate Search for months now, but still I'm not able to digest the relevance it brings. I'm overall satisfied with the results it returns, but even simplest test does not satisfy my expectation.</p>
  
  <p>First test was using the term frequency(tf).
  Data:</p>
  
  <ul>
  <li>word</li>
  <li>word word</li>
  <li>word word word</li>
  <li>word word word word</li>
  <li>word word word word word</li>
  <li>word word word word word word</li>
  </ul>
  
  <p>Results I get:</p>
  
  <ol>
  <li>word </li>
  <li>word word word word </li>
  <li>word word word word word </li>
  <li>word word word word word word </li>
  <li>word word </li>
  <li>word word word</li>
  </ol>
  
  <p>I'm really confused with this scoring effect. My Query is quite complex, but as this test did not have any other field involved, it can be simplified as below:
  booleanjunction.should(phraseQuery).should(keywordQuery).should(fuzzyQuery)</p>
  
  <p>I've analyzers as below:</p>
  
  <pre><code> StandardFilterFactory
   LowerCaseFilterFactory
   StopFilterFactory
   SnowballPorterFilterFactory for english
  </code></pre>
  
  <p>My Explanation object
  <a href="https://jsfiddle.net/o51kh3og/" rel="nofollow">https://jsfiddle.net/o51kh3og/</a></p>