lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: using search instead of explain
Date Thu, 04 May 2006 21:15:35 GMT

: 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message