Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Shashikant Kore is correct to say that scores for each field are summed. This, however, is only true before the contribution of the <code>queryNorm</code> and <code>coord</code> factors, meaning the final scores will not likely add up.</p> <p>Each score is multiplied by the <a href="http://lucene.apache.org/core/old_versioned_docs/versions/3_0_1/api/core/org/apache/lucene/search/Similarity.html#formula_queryNorm" rel="nofollow"><code>queryNorm</code></a> factor, which is calculated per query and hence differs for each of <code>(name:bill)</code>, <code>(gender:male)</code>, and <code>(name:bill OR gender:male)</code>. Nor is the <code>queryNorm</code> for the combined query merely the sum of the <code>queryNorm</code>s for the two single-term queries. So the scores only sum if you divide each score by the <code>queryNorm</code> factor for that query.</p> <p>The <a href="http://lucene.apache.org/core/old_versioned_docs/versions/3_0_1/api/core/org/apache/lucene/search/Similarity.html#formula_coord" rel="nofollow"><code>coord</code></a> factor may also pay a part: the default scorer multiplies the score by the proportion of query terms that were matched. So you can only rely on summation after accounting for <code>queryNorm</code> where all terms match (or <code>coord</code> is disabled).</p> <p>You can see exactly how a score is calculated using the <a href="http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/api/core/org/apache/lucene/search/IndexSearcher.html#explain%28org.apache.lucene.search.Query,%20int%29" rel="nofollow"><code>explain</code></a> functionality, available in Solr through the <code>debugQuery=true</code> parameter.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload