From 4fa6ab1d5555e6a8248082f31d328c042794415c Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Mon, 29 Sep 2014 22:02:34 +0000 Subject: [PATCH] add missing space git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1628325 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/search/similarities/DefaultSimilarity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java index 8f2b072e110..7d1e6f1dbe9 100644 --- a/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java +++ b/lucene/core/src/java/org/apache/lucene/search/similarities/DefaultSimilarity.java @@ -112,7 +112,7 @@ public class DefaultSimilarity extends TFIDFSimilarity { 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 sqrt(freq). */