Yes it helps me understanding, thank u.
I make a BooleanQuery with the input of the user and include in the query
title:keywordofuser headlines:keywordofuser content:keywordofuser
I tried to Boost field title, then if keyword appear in the title, score grows 
like I want to, but if keyword occurs in content or headlines score decrease 
more than before ...
I would like to have a score independent for each query in the BooleanQuery, 
sounds basic but I just can't achieve this.
Is this also possible to change ?
Thank u.

>>Soren
The score is not one (0.3764683). If it should to be one you can 
normalize the score.
What do u mean by normalizing the score and how ?



    

-----Original Message-----
From: Chris Hostetter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 12:00 AM
To: java-user@lucene.apache.org
Subject: Re: Score

*****  This message comes from the Internet Network *****


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 <[EMAIL PROTECTED]>
: 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: [EMAIL PROTECTED]
: For additional commands, e-mail: [EMAIL PROTECTED]
:



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



============================================
Internet communications are not secure and therefore Fortis Banque Luxembourg 
S.A. does not accept legal responsibility for the contents of this message. The 
information contained in this e-mail is confidential and may be legally 
privileged. It is intended solely for the addressee. If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited and may be unlawful. 
Nothing in the message is capable or intended to create any legally binding 
obligations on either party and it is not intended to provide legal advice.
============================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to