lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@m4.dion.ne.jp>
Subject RE: score formula in Similarity javadoc
Date Wed, 26 Oct 2005 02:49:33 GMT
Attached file was deleted by mailing list server.
The patch was:

Index: src/java/org/apache/lucene/search/Similarity.java
===================================================================
--- src/java/org/apache/lucene/search/Similarity.java	(繝ェ繝薙ず繝ァ繝ウ
328522)
+++ src/java/org/apache/lucene/search/Similarity.java	(菴懈・ュ繧ウ繝斐・)
@@ -42,7 +42,7 @@
  *    <big><big><big><big><big>&Sigma;</big></big></big></big></big></td>
  *    <td valign="middle"><small>
  *    ( {@link #tf(int) tf}(t in d) *
- *    {@link #idf(Term,Searcher) idf}(t)^2 *
+ *    {@link #idf(Term,Searcher) idf}(t) *
  *    {@link Query#getBoost getBoost}(t in q) *
  *    {@link Field#getBoost getBoost}(t.field in d) *
  *    {@link #lengthNorm(String,int) lengthNorm}(t.field in d) )

> -----Original Message-----
> From: Koji Sekiguchi [mailto:koji.sekiguchi@m4.dion.ne.jp]
> Sent: Wednesday, October 26, 2005 11:38 AM
> To: java-user@lucene.apache.org
> Subject: score formula in Similarity javadoc
>
>
> Hello,
>
> I apologize if this list is not appropriate for sending a patch.
>
> It seems there is an error on score formula in Similarity javadoc:
>
> score(q,d) = sigma( tf * idf^2 * ... )
>
> should be
>
> score(q,d) = sigma( tf * idf * ... )
>
> if my understanding is correct, I would appreciate it if
> someone could apply the attached patch to svn.
>
> BTW, in java langauge, operator ^ means BIT XOR... :)
>
> regards,
>
> Koji
>
>
>



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