lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1628327 - in /lucene/dev/branches/lucene_solr_4_10: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
Date Mon, 29 Sep 2014 22:04:24 GMT
Author: mikemccand
Date: Mon Sep 29 22:04:24 2014
New Revision: 1628327

URL: http://svn.apache.org/r1628327
Log:
add missing space

Modified:
    lucene/dev/branches/lucene_solr_4_10/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/   (props changed)
    lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java

Modified: lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java?rev=1628327&r1=1628326&r2=1628327&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
(original)
+++ lucene/dev/branches/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java
Mon Sep 29 22:04:24 2014
@@ -112,7 +112,7 @@ public class DefaultSimilarity extends T
       numTerms = state.getLength() - state.getNumOverlap();
     else
       numTerms = state.getLength();
-   return state.getBoost() * ((float) (1.0 / Math.sqrt(numTerms)));
+    return state.getBoost() * ((float) (1.0 / Math.sqrt(numTerms)));
   }
 
   /** Implemented as <code>sqrt(freq)</code>. */



Mime
View raw message