lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doron Cohen (JIRA)" <>
Subject [jira] Commented: (LUCENE-1113) fix for Document.getBoost() documentation
Date Mon, 31 Dec 2007 15:26:43 GMT


Doron Cohen commented on LUCENE-1113:

How about:
   Returns, at indexing time, the boost factor as set by {@link #setBoost(float)}. 

   <p>Note that once a document is indexed this value is no longer available
   from the index.  At search time, for retrieved documents, this method always 
   returns 1. This however does not mean that the boost value set at  indexing 
   time was ignored - it was just combined with other indexing time factors and 
   stored elsewhere, for better indexing and search performance. (For more 
   info see the "norm(t,d)" part of the scoring formula in 
   {@link Similarity}.

> fix for Document.getBoost() documentation
> -----------------------------------------
>                 Key: LUCENE-1113
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Javadocs
>    Affects Versions: 2.2
>            Reporter: Daniel Naber
>            Priority: Minor
>         Attachments: document-getboost.diff
> The attached patch fixes the javadoc to make clear that getBoost() will never return
a useful value in most cases. I will commit this unless someone has a better wording or a
real fix.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message