You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by DECAFFMEYER MATHIEU <MA...@fortis.lu> on 2007/01/31 11:03:57 UTC

Boost

Just as a test I tried this :

Field contentField = 
    new Field(
        "content", cleanedContent, 
        Field.Store.NO, 
        Field.Index.TOKENIZED);

contentField.setBoost(100);      
doc.add(contentField);

In my document I have the word "experience",
when I do a search on this word I keep having a score of a bit more than
0.

Why is my boost not working ?

Thank u.

__________________________________

   Mathieu Decaffmeyer


============================================
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.
============================================


RE: Boost

Posted by DECAFFMEYER MATHIEU <MA...@fortis.lu>.
Sorry I have it working ...
 
__________________________________ 

   Mathieu Decaffmeyer 


 

________________________________

From: DECAFFMEYER MATHIEU [mailto:MATHIEU.DECAFFMAYER@fortis.lu] 
Sent: Wednesday, January 31, 2007 11:04 AM
To: java-user@lucene.apache.org
Subject: Boost


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



Just as a test I tried this : 

Field contentField = 
    new Field( 
        "content", cleanedContent, 
        Field.Store.NO, 
        Field.Index.TOKENIZED); 

contentField.setBoost(100);      
doc.add(contentField); 

In my document I have the word "experience", 
when I do a search on this word I keep having a score of a bit more than
0. 

Why is my boost not working ? 

Thank u. 

__________________________________ 

   Mathieu Decaffmeyer 



============================================
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.
============================================