lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1664688 - in /lucene/dev/branches/branch_5x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/search/similarities/ lucene/core/src/test/org/apache/lucene/search/similarities/
Date Fri, 06 Mar 2015 17:52:43 GMT
Author: mikemccand
Date: Fri Mar  6 17:52:43 2015
New Revision: 1664688

URL: http://svn.apache.org/r1664688
Log:
LUCENE-6343: DefaultSimilarity javadocs has the wrong example for encode/decode precision
loss

Added:
    lucene/dev/branches/branch_5x/lucene/core/src/test/org/apache/lucene/search/similarities/TestDefaultSimilarity.java
      - copied unchanged from r1664687, lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/similarities/TestDefaultSimilarity.java
Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/lucene/   (props changed)
    lucene/dev/branches/branch_5x/lucene/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/lucene/core/   (props changed)
    lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java

Modified: lucene/dev/branches/branch_5x/lucene/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/CHANGES.txt?rev=1664688&r1=1664687&r2=1664688&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/lucene/CHANGES.txt Fri Mar  6 17:52:43 2015
@@ -189,6 +189,9 @@ Other
 * LUCENE-6333: Refactored queries to delegate their equals and hashcode
   impls to the super class. (Lee Hinman via Adrien Grand)
 
+* LUCENE-6343: DefaultSimilarity javadocs had the wrong float value to
+  demonstrate precision of encoded norms (András Péteri via Mike McCandless)
+
 Changes in Runtime Behavior
 
 * LUCENE-6255: PhraseQuery now ignores leading holes and requires that

Modified: lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java?rev=1664688&r1=1664687&r2=1664688&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
(original)
+++ lucene/dev/branches/branch_5x/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
Fri Mar  6 17:52:43 2015
@@ -29,7 +29,7 @@ import org.apache.lucene.util.SmallFloat
  * {@link #decodeNormValue(long) decoded} back to a float <i>norm</i> value.
  * This encoding/decoding, while reducing index size, comes with the price of
  * precision loss - it is not guaranteed that <i>decode(encode(x)) = x</i>. For
- * instance, <i>decode(encode(0.89)) = 0.75</i>.
+ * instance, <i>decode(encode(0.89)) = 0.875</i>.
  * <p>
  * Compression of norm values to a single byte saves memory at search time,
  * because once a field is referenced at search time, its norms - for all



Mime
View raw message