lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ng Vinny" <>
Subject compare scores across queries
Date Tue, 18 Nov 2008 17:02:48 GMT
Hi all,

I am wondering if the raw scores obtained from HitCollector can be used to
compare relevance of documents to different queries?

E.g.  two  phrase queries are issued : (PQ1: "Barack Obama"  and PQ2:  "John
McCain"). if a document (doc1) belongs to the result sets of both queries
and has the raw score of 5 for PQ1 and 3 for PQ2, can  I say that doc1 is
more relevant to "Barack Obama" than to "John McCain"?

There have been some previous discussions about this at [1,2]. On the other
hand, the javadoc of the Similarity class says "*queryNorm(q) * is a
normalizing factor used to make scores between queries comparable. This
factor does not affect document ranking (since all ranked documents are
multiplied by the same factor), but rather just attempts to make scores from
different queries (or even different indexes) comparable. "

Please advise.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message