title: Understanding Solr Doc=
body: <p>I have two indexed documents that I am trying to figure out the relevancy of why one is higher than the other. So I've ran <code>DebugQuery=True</code> in order to get the explain. Below is the relevant difference in the two documents.</p>
  
  <h2>Two Different Types of Documents</h2>
  
  <p>It may be relevant; The documents are of two different types which I use *_s field to differentiate. So my field, module_s has two modules 1 and 2. My query has:</p>
  
  <pre><code>&lt;arr name="filter_queries"&gt;
      &lt;str&gt;moduleid_s:(1 OR 2)&lt;/str&gt;
  &lt;/arr&gt;
  </code></pre>
  
  <p>so I don't believe this should cause an issue, but I wanted to add this info.</p>
  
  <h2>The relevant explain differences:</h2>
  
  <p><strong>Document 1 - module type = 1</strong></p>
  
  <pre><code>result of: 1.7325882 = score(doc=3513280,freq=1.0), 
      product of: 0.44456035 = queryWeight, 
      product of: 0.5 = boost 7.7946143 = idf(docFreq=5286,maxDocs=4721423) 0.1140686 = queryNorm 3.8973072 = fieldWeight in 3513280, 
      product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 7.7946143 = idf(docFreq=5286, maxDocs=4721423) 0.5 = fieldNorm(doc=3513280) 
  </code></pre>
  
  <p><strong>Document 2 - module type = 2</strong></p>
  
  <pre><code>result of: 0.75800735 = score(doc=174,freq=1.0), 
          product of: 0.44456035 = queryWeight, 
          product of: 0.5 = boost 7.7946143 = idf(docFreq=5286,maxDocs=4721423) 0.1140686 = queryNorm 1.7050719 = fieldWeight in 174, 
          product of: 1.0 = tf(freq=1.0), with freq of: 1.0 = termFreq=1.0 7.7946143 = idf(docFreq=5286, maxDocs=4721423) 0.21875 = fieldNorm(doc=174) 
  </code></pre>
  
  <h2>Synopsis and Question</h2>
  
  <p>As you can see the explains are almost identical. They all have the same queryWeight, boost, idf, and queryNorm. What is different, is the doc=XXX. For document 1 it's <code>351328</code> and document 2 it's <code>174</code>. Could someone explain what this number is? Where it comes from? And why it's Different?</p>
  
  <p><strong>resources Used</strong></p>
  
  <ul>
  <li><a href="http://blog.thedigitalgroup.com/dattatrayap/2015/06/12/understanding-solr-explain/" rel="nofollow">http://blog.thedigitalgroup.com/dattatrayap/2015/06/12/understanding-solr-explain/</a></li>
  <li><a href="http://www.openjems.com/solr-lucene-score-tutorial/" rel="nofollow">http://www.openjems.com/solr-lucene-score-tutorial/</a></li>
  <li><a href="http://explain.solr.pl/" rel="nofollow">http://explain.solr.pl/</a></li>
  </ul>