: so the score is always correct, just the Explain can return values : greater than 0 although the query did not match the document due to a : bug in Explain? Are all version affected of that? I use lucene 1.9.1.
1) the score returned by TopDocs or passed to a HitCollector is by definition the correct score. 2) for matching documents, the value in an Explaination may not allways match the value from #1, this is a bug. 3) for non-matching documents, there is no defined behavior for what an Explanation should contain. in many cases it uses 0.0f to indicate no match, but 0.0f could also be a valid score for a match -- it's just not well defined. 4) independent of #2 and #3, an Explanation should really only be used for debugging -- it's much slower then just doing a search. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]