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: Score
Date Mon, 29 Jan 2007 23:00:00 GMT

Note also that the scores in an Explanation are the "raw" scores ... if
you use Hits, the scores are "partially normalized" meaning that if the
highest scoring document has a score greater then 1, all scores are
devided by the highest score.




: Date: Mon, 29 Jan 2007 21:52:58 +0100
: From: Soeren Pekrul <soeren.pekrul@gmx.de>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Re: Score
:
: DECAFFMEYER MATHIEU wrote:
: >
: > Both are the same document but in different indexes,
: > the only difference is that the second idnex has more document than the
: > first one, the first one contains only that page.
: > I would like to have the same score as in the second index,
:
: Simple speaking, the score depends of the query, the matched document
: and the index. The influence of the index is represented by the idf
: (inverse document frequency).
:
: Look at:
: http://lucene.apache.org/java/docs/scoring.html
: http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html
:
: If you would like to get a score independent of the index you should
: override the idf function by sup-classing the Similarity class
: (DefaultSimilarity) and return always 1.
:
: > because if
: > user enters title of document i want it to be 1 score.
:
: The score is not one (0.3764683). If it should to be one you can
: normalize the score.
:
: I hope it helps.
:
: Sören
:
:
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
: For additional commands, e-mail: java-user-help@lucene.apache.org
:



-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